1
0
forked from 0ad/0ad

Added heal

This was SVN commit r3221.
This commit is contained in:
pyrolink 2005-12-10 19:39:17 +00:00
parent 2358540305
commit 4f6dafd82a
3 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,9 @@ CBaseEntity::CBaseEntity()
AddProperty( L"actions.gather.range", &( m_gather.m_MaxRange ) );
AddProperty( L"actions.gather.rangemin", &( m_gather.m_MinRange ) );
AddProperty( L"actions.gather.speed", &( m_gather.m_Speed ) );
AddProperty( L"actions.heal.range", &( m_heal.m_MaxRange ) );
AddProperty( L"actions.heal.rangemin", &( m_heal.m_MinRange ) );
AddProperty( L"actions.heal.speed", &( m_heal.m_Speed ) );
AddProperty( L"actor", &m_actorName );
AddProperty( L"traits.extant", &m_extant );
AddProperty( L"traits.corpse", &m_corpse );

View File

@ -77,6 +77,7 @@ public:
float m_speed;
SEntityAction m_melee;
SEntityAction m_gather;
SEntityAction m_heal;
float m_turningRadius;
CScriptObject m_EventHandlers[EVENT_LAST];

View File

@ -264,6 +264,9 @@ uint CSimulation::TranslateMessage(CNetMessage* pMsg, uint clientMask, void* UNU
case NMT_Gather:
ENTITY_ENTITY(CGather, ORDER_GATHER);
break;
case NMT_Heal:
ENTITY_ENTITY(CHeal, ORDER_HEAL);
break;
}
return clientMask;