Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/CCmpUnitRenderer.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | public: | ||||
int m_FrameNumber; | int m_FrameNumber; | ||||
float m_FrameOffset; | float m_FrameOffset; | ||||
bool m_EnableDebugOverlays; | bool m_EnableDebugOverlays; | ||||
std::vector<SOverlaySphere> m_DebugSpheres; | std::vector<SOverlaySphere> m_DebugSpheres; | ||||
static void ClassInit(CComponentManager& componentManager) | static void ClassInit(CComponentManager& componentManager) | ||||
{ | { | ||||
componentManager.SubscribeToMessageType(MT_TurnStart); | componentManager.SubscribeToMessageType(CID_UnitRenderer, MT_TurnStart); | ||||
componentManager.SubscribeToMessageType(MT_Interpolate); | componentManager.SubscribeToMessageType(CID_UnitRenderer, MT_Interpolate); | ||||
componentManager.SubscribeToMessageType(MT_RenderSubmit); | componentManager.SubscribeToMessageType(CID_UnitRenderer, MT_RenderSubmit); | ||||
} | } | ||||
DEFAULT_COMPONENT_ALLOCATOR(UnitRenderer) | DEFAULT_COMPONENT_ALLOCATOR(UnitRenderer) | ||||
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 333 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator