This was SVN commit r3505.
This commit is contained in:
parent
5680fcf687
commit
eede9c0f7b
@ -61,6 +61,8 @@ enum ENetMessageType
|
||||
NMT_AddWaypoint,
|
||||
NMT_Generic,
|
||||
NMT_Run,
|
||||
NMT_NotifyRequest,
|
||||
|
||||
NMT_COMMAND_LAST,
|
||||
/* Post-Game Stage */
|
||||
|
||||
@ -231,6 +233,11 @@ DERIVE_NMT_CLASS_(NetCommand, Generic)
|
||||
NMT_FIELD_INT(m_Action, u32, 4)
|
||||
END_NMT_CLASS()
|
||||
|
||||
DERIVE_NMT_CLASS_(NetCommand, NotifyRequest)
|
||||
NMT_FIELD(HEntity, m_Target)
|
||||
NMT_FIELD_INT(m_Action, u32, 4)
|
||||
END_NMT_CLASS()
|
||||
|
||||
END_NMTS()
|
||||
|
||||
#else
|
||||
|
@ -82,6 +82,7 @@ void CNetMessage::ScriptingInit()
|
||||
def(NMT_Patrol);
|
||||
def(NMT_AddWaypoint);
|
||||
def(NMT_Generic);
|
||||
def(NMT_NotifyRequest);
|
||||
}
|
||||
|
||||
CNetCommand *CNetMessage::CommandFromJSArgs(const CEntityList &entities, JSContext *cx, uintN argc, jsval *argv)
|
||||
@ -183,6 +184,7 @@ CNetCommand *CNetMessage::CommandFromJSArgs(const CEntityList &entities, JSConte
|
||||
PositionMessage(AddWaypoint)
|
||||
|
||||
EntityIntMessage(Generic)
|
||||
EntityIntMessage(NotifyRequest)
|
||||
|
||||
default:
|
||||
JS_ReportError(cx, "Invalid order type");
|
||||
|
Loading…
Reference in New Issue
Block a user