1
0
forked from 0ad/0ad

Finally did the heal thing.

This was SVN commit r3219.
This commit is contained in:
pyrolink 2005-12-10 19:37:52 +00:00
parent 7e6d38314d
commit bed6abeed5
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,7 @@ enum ENetMessageType
NMT_AddWaypoint,
NMT_AttackMelee,
NMT_Gather,
NMT_Heal,
NMT_COMMAND_LAST,
/* Post-Game Stage */
@ -229,6 +230,10 @@ DERIVE_NMT_CLASS_(NetCommand, Gather)
NMT_FIELD(HEntity, m_Target)
END_NMT_CLASS()
DERIVE_NMT_CLASS_(NetCommand, Heal)
NMT_FIELD(HEntity, m_Target)
END_NMT_CLASS()
END_NMTS()
#else

View File

@ -82,6 +82,7 @@ void CNetMessage::ScriptingInit()
def(NMT_AddWaypoint);
def(NMT_AttackMelee);
def(NMT_Gather);
def(NMT_Heal);
}
CNetCommand *CNetMessage::CommandFromJSArgs(const CEntityList &entities, JSContext *cx, uintN argc, jsval *argv)
@ -163,6 +164,8 @@ CNetCommand *CNetMessage::CommandFromJSArgs(const CEntityList &entities, JSConte
EntityMessage(AttackMelee)
EntityMessage(Gather)
EntityMessage(Heal)
default:
JS_ReportError(cx, "Invalid order type");
return NULL;