Nebula
Loading...
Searching...
No Matches
basegamefeatureunit.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
14#include "game/featureunit.h"
15#include "core/cvar.h"
16
17//------------------------------------------------------------------------------
18namespace BaseGameFeature
19{
20
22{
25
26public:
27
31 virtual ~BaseGameFeatureUnit();
32
34 void OnAttach() override;
35
37 void OnActivate() override;
39 void OnDeactivate() override;
40
42 void OnEndFrame() override;
44 void OnRenderDebug() override;
46 void OnFrame() override;
47
48protected:
52};
53
54} // namespace BaseGameFeature
55//------------------------------------------------------------------------------
The BaseGameFeatureUnit creates everything to allow load and run a game level.
Definition basegamefeatureunit.h:22
void OnActivate() override
Called upon activation of feature unit.
Definition basegamefeatureunit.cc:66
Core::CVar * cl_debug_worlds
Definition basegamefeatureunit.h:51
void OnAttach() override
called upon attaching the feature unit
Definition basegamefeatureunit.cc:50
Game::ManagerHandle blueprintManager
Definition basegamefeatureunit.h:49
virtual __DeclareClass(BaseGameFeatureUnit) __DeclareSingleton(BaseGameFeatureUnit) public ~BaseGameFeatureUnit()
destructor
Definition basegamefeatureunit.cc:41
void OnRenderDebug() override
called when game debug visualization is on
Definition basegamefeatureunit.cc:91
void OnDeactivate() override
Called upon deactivation of feature unit.
Definition basegamefeatureunit.cc:79
Game::ManagerHandle timeManager
Definition basegamefeatureunit.h:50
void OnEndFrame() override
called at the end of the feature trigger cycle
Definition basegamefeatureunit.cc:127
void OnFrame() override
called at the beginning of a frame
Definition basegamefeatureunit.cc:136
A FeatureUnit is an encapsulated feature which can be added to an application.
Definition featureunit.h:33
Contains API for creating, writing to, and reading from a Core::CVar.
Definition basegamefeatureunit.cc:23
#define __DeclareSingleton(type)
Definition osxsingleton.h:24
#define __DeclareClass(type)
A console variable.
Definition cvar.cc:24
Definition manager.h:27