Nebula
Loading...
Searching...
No Matches
physicsfeatureunit.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11#include "game/featureunit.h"
12
13#define TIMESOURCE_PHYSICS 'PHTS'
14
15//------------------------------------------------------------------------------
16namespace PhysicsFeature
17{
18
20{
23
24public:
25
30
31 void OnAttach() override;
32
34 void OnActivate();
36 void OnDeactivate();
38 void OnBeforeCleanup(Game::World* world);
39
41 virtual void OnBeginFrame();
43 virtual void OnDecay();
45 virtual void OnRenderDebug();
46private:
49};
50
51} // namespace PhysicsFeature
52//------------------------------------------------------------------------------
A FeatureUnit is an encapsulated feature which can be added to an application.
Definition featureunit.h:34
A container of entities, their components, and processors.
Sets up and interfaces with the physics subsystem.
Definition physicsfeatureunit.h:20
bool simulating
Definition physicsfeatureunit.h:48
void OnActivate()
Called upon activation of feature unit.
Definition physicsfeatureunit.cc:51
virtual void OnDecay()
called at the end of the feature trigger cycle
Definition physicsfeatureunit.cc:178
virtual void OnBeginFrame()
called on begin of frame
Definition physicsfeatureunit.cc:158
void OnBeforeCleanup(Game::World *world)
called from within GameServer::NotifyBeforeCleanup()
Definition physicsfeatureunit.cc:144
virtual void OnRenderDebug()
called when game debug visualization is on
Definition physicsfeatureunit.cc:195
void OnDeactivate()
Called upon deactivation of feature unit.
Definition physicsfeatureunit.cc:129
__DeclareClass(PhysicsFeatureUnit) __DeclareSingleton(PhysicsFeatureUnit) public ~PhysicsFeatureUnit()
destructor
Definition physicsfeatureunit.cc:32
void OnAttach() override
called from GameServer::AttachGameFeature()
Definition physicsfeatureunit.cc:41
Util::Dictionary< Game::World *, IndexT > physicsWorlds
Definition physicsfeatureunit.h:47
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition dictionary.h:34
Definition physicsmanager.cc:21
#define __DeclareSingleton(type)
Definition osxsingleton.h:24
#define __DeclareClass(type)