Finally did the heal thing.
This was SVN commit r3219.
This commit is contained in:
1 parent
7e6d38314d
commit
bed6abeed5
2 files changed
+8
No files matched your search
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user