Managers are objects which care about some specific functionality of a feature.
They should be subclassed by applications to implement aspects of the application (mainly game play related functionality).
Managers are created and triggered by game features. The frame trigger functions are invoked when the gameserver triggers the game feature.
- See also
- NebulaApplication GameManagers
- Copyright
- (C) 2020-2024 Individual contributors, see AUTHORS file
|
virtual __DeclareClass(Manager) public | ~Manager () |
| destructor
|
|
bool | IsActive () const |
| return true if currently active
|
|
virtual void | OnActivate () |
|
virtual void | OnDeactivate () |
| called when removed from game server
|
|
virtual void | OnBeginFrame () |
| called before frame by the feature
|
|
virtual void | OnBeforeViews () |
| Called between begin frame and before views.
|
|
virtual void | OnFrame () |
| called per-frame by the feature
|
|
virtual void | OnEndFrame () |
| called after frame by the feature
|
|
virtual void | OnDecay () |
| called before cleaning up managed properties decay buffers
|
|
virtual void | OnLoad (World *) |
| called after loading game state
|
|
virtual void | OnSave (World *) |
| called before saving game state
|
|
virtual void | OnCleanup (World *) |
| called before unloading game state
|
|
virtual void | OnStart (World *) |
| called by Game::Server::Start()
|
|
virtual void | OnRenderDebug () |
| render a debug visualization
|
|
|
| RefCounted () |
| constructor
|
|
int | GetRefCount () const |
| get the current refcount
|
|
void | AddRef () |
| increment refcount by one
|
|
void | Release () |
| decrement refcount and destroy object if refcount is zero
|
|
bool | IsInstanceOf (const Rtti &rtti) const |
| return true if this object is instance of given class
|
|
bool | IsInstanceOf (const Util::String &className) const |
| return true if this object is instance of given class by string
|
|
bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
| return true if this object is instance of given class by fourcc
|
|
bool | IsA (const Rtti &rtti) const |
| return true if this object is instance of given class, or a derived class
|
|
bool | IsA (const Util::String &rttiName) const |
| return true if this object is instance of given class, or a derived class, by string
|
|
bool | IsA (const Util::FourCC &rttiFourCC) const |
| return true if this object is instance of given class, or a derived class, by fourcc
|
|
const Util::String & | GetClassName () const |
| get the class name
|
|
Util::FourCC | GetClassFourCC () const |
| get the class FourCC code
|
|
static void | DumpRefCountingLeaks () |
| dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
|
|
virtual | ~RefCounted () |
| destructor (called when refcount reaches zero)
|
|