Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/CCmpOwnership.cpp
Show All 24 Lines | |||||
/** | /** | ||||
* Basic ICmpOwnership implementation. | * Basic ICmpOwnership implementation. | ||||
*/ | */ | ||||
class CCmpOwnership final : public ICmpOwnership | class CCmpOwnership final : public ICmpOwnership | ||||
{ | { | ||||
public: | public: | ||||
static void ClassInit(CComponentManager& componentManager) | static void ClassInit(CComponentManager& componentManager) | ||||
{ | { | ||||
componentManager.SubscribeToMessageType(MT_Destroy); | componentManager.SubscribeToMessageType(CID_Ownership, MT_Destroy); | ||||
} | } | ||||
DEFAULT_COMPONENT_ALLOCATOR(Ownership) | DEFAULT_COMPONENT_ALLOCATOR(Ownership) | ||||
player_id_t m_Owner; | player_id_t m_Owner; | ||||
static std::string GetSchema() | static std::string GetSchema() | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator