Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/CCmpProjectileManager.cpp
Show All 40 Lines | |||||
// Time (in seconds) before projectiles that stuck in the ground are destroyed | // Time (in seconds) before projectiles that stuck in the ground are destroyed | ||||
const static float PROJECTILE_DECAY_TIME = 30.f; | const static float PROJECTILE_DECAY_TIME = 30.f; | ||||
class CCmpProjectileManager final : public ICmpProjectileManager | class CCmpProjectileManager final : public ICmpProjectileManager | ||||
{ | { | ||||
public: | public: | ||||
static void ClassInit(CComponentManager& componentManager) | static void ClassInit(CComponentManager& componentManager) | ||||
{ | { | ||||
componentManager.SubscribeToMessageType(MT_Interpolate); | componentManager.SubscribeToMessageType(CID_ProjectileManager, MT_Interpolate); | ||||
componentManager.SubscribeToMessageType(MT_RenderSubmit); | componentManager.SubscribeToMessageType(CID_ProjectileManager, MT_RenderSubmit); | ||||
} | } | ||||
DEFAULT_COMPONENT_ALLOCATOR(ProjectileManager) | DEFAULT_COMPONENT_ALLOCATOR(ProjectileManager) | ||||
static std::string GetSchema() | static std::string GetSchema() | ||||
{ | { | ||||
return "<a:component type='system'/><empty/>"; | return "<a:component type='system'/><empty/>"; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator