1
0
forked from 0ad/0ad

This was SVN commit r3505.

This commit is contained in:
pyrolink 2006-02-13 03:31:26 +00:00
parent 5680fcf687
commit eede9c0f7b
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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");