Architecture Arcade
Architecture Commune Arcade
Public Member Functions | List of all members
Arcade::Game::IGameModule Class Referenceabstract

The IGameModule interface. More...

#include <IGameModule.hpp>

Collaboration diagram for Arcade::Game::IGameModule:
Collaboration graph

Public Member Functions

virtual ~IGameModule ()=default
 
virtual void update (double deltaTime, Arcade::ECS::IEventManager &eventManager)=0
 method that will be called each frame by the core More...
 
virtual Arcade::ECS::IEntityManagergetCurrentEntityManager ()=0
 Get the entity manager of the current active scene. More...
 

Detailed Description

The IGameModule interface.

This concret class will be created by the game .so and will be destroyed by the .so through getGameModule() method and destroyGameModule() method

Constructor & Destructor Documentation

◆ ~IGameModule()

virtual Arcade::Game::IGameModule::~IGameModule ( )
virtualdefault

Member Function Documentation

◆ getCurrentEntityManager()

virtual Arcade::ECS::IEntityManager& Arcade::Game::IGameModule::getCurrentEntityManager ( )
pure virtual

Get the entity manager of the current active scene.

Returns
The entity manager of the current active scene

◆ update()

virtual void Arcade::Game::IGameModule::update ( double  deltaTime,
Arcade::ECS::IEventManager eventManager 
)
pure virtual

method that will be called each frame by the core

You are expected to update the current scene in this method

Parameters
deltaTimetime passed since last frame
eventManagerthe event manager

The documentation for this class was generated from the following file: