3535#include " GameNetwork/NetworkDefs.h"
3636#include " Common/UnicodeString.h"
3737
38+ // -----------------------------------------------------------------------------
3839class NetCommandMsg : public MemoryPoolObject
3940{
4041 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetCommandMsg, " NetCommandMsg" )
@@ -67,6 +68,10 @@ class NetCommandMsg : public MemoryPoolObject
6768};
6869
6970
71+ // -----------------------------------------------------------------------------
72+ /* *
73+ * The NetGameCommandMsg is the NetCommandMsg representation of a GameMessage
74+ */
7075class NetGameCommandMsg : public NetCommandMsg
7176{
7277 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetGameCommandMsg, " NetGameCommandMsg" )
@@ -88,6 +93,11 @@ class NetGameCommandMsg : public NetCommandMsg
8893 GameMessageArgument *m_argList, *m_argTail;
8994};
9095
96+ // -----------------------------------------------------------------------------
97+ /* *
98+ * The NetAckBothCommandMsg is the NetCommandMsg representation of the combination of a
99+ * stage 1 ack and a stage 2 ack.
100+ */
91101class NetAckBothCommandMsg : public NetCommandMsg
92102{
93103 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetAckBothCommandMsg, " NetAckBothCommandMsg" )
@@ -109,6 +119,11 @@ class NetAckBothCommandMsg : public NetCommandMsg
109119 UnsignedByte m_originalPlayerID;
110120};
111121
122+ // -----------------------------------------------------------------------------
123+ /* *
124+ * The NetAckStage1CommandMsg is the NetCommandMsg representation of an ack message for the initial
125+ * recipient.
126+ */
112127class NetAckStage1CommandMsg : public NetCommandMsg
113128{
114129 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetAckStage1CommandMsg, " NetAckStage1CommandMsg" )
@@ -130,6 +145,11 @@ class NetAckStage1CommandMsg : public NetCommandMsg
130145 UnsignedByte m_originalPlayerID;
131146};
132147
148+ // -----------------------------------------------------------------------------
149+ /* *
150+ * The NetAckStage2CommandMsg is the NetCommandMsg representation of an ack message for all eventual
151+ * recipients. (when this is returned, all the players in the relay mask have received the packet)
152+ */
133153class NetAckStage2CommandMsg : public NetCommandMsg
134154{
135155 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetAckStage2CommandMsg, " NetAckStage2CommandMsg" )
@@ -151,6 +171,7 @@ class NetAckStage2CommandMsg : public NetCommandMsg
151171 UnsignedByte m_originalPlayerID;
152172};
153173
174+ // -----------------------------------------------------------------------------
154175class NetFrameCommandMsg : public NetCommandMsg
155176{
156177 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetFrameCommandMsg, " NetFrameCommandMsg" )
@@ -167,6 +188,7 @@ class NetFrameCommandMsg : public NetCommandMsg
167188 UnsignedShort m_commandCount;
168189};
169190
191+ // -----------------------------------------------------------------------------
170192class NetPlayerLeaveCommandMsg : public NetCommandMsg
171193{
172194 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetPlayerLeaveCommandMsg, " NetPlayerLeaveCommandMsg" )
@@ -183,6 +205,7 @@ class NetPlayerLeaveCommandMsg : public NetCommandMsg
183205 UnsignedByte m_leavingPlayerID;
184206};
185207
208+ // -----------------------------------------------------------------------------
186209class NetRunAheadMetricsCommandMsg : public NetCommandMsg
187210{
188211 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetRunAheadMetricsCommandMsg, " NetRunAheadMetricsCommandMsg" )
@@ -202,6 +225,7 @@ class NetRunAheadMetricsCommandMsg : public NetCommandMsg
202225 Int m_averageFps;
203226};
204227
228+ // -----------------------------------------------------------------------------
205229class NetRunAheadCommandMsg : public NetCommandMsg
206230{
207231 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetRunAheadCommandMsg, " NetRunAheadCommandMsg" )
@@ -222,6 +246,7 @@ class NetRunAheadCommandMsg : public NetCommandMsg
222246 UnsignedByte m_frameRate;
223247};
224248
249+ // -----------------------------------------------------------------------------
225250class NetDestroyPlayerCommandMsg : public NetCommandMsg
226251{
227252 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDestroyPlayerCommandMsg, " NetDestroyPlayerCommandMsg" )
@@ -238,6 +263,7 @@ class NetDestroyPlayerCommandMsg : public NetCommandMsg
238263 UnsignedInt m_playerIndex;
239264};
240265
266+ // -----------------------------------------------------------------------------
241267class NetKeepAliveCommandMsg : public NetCommandMsg
242268{
243269 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetKeepAliveCommandMsg, " NetKeepAliveCommandMsg" )
@@ -248,6 +274,7 @@ class NetKeepAliveCommandMsg : public NetCommandMsg
248274 virtual size_t getPackedByteCount () const ;
249275};
250276
277+ // -----------------------------------------------------------------------------
251278class NetDisconnectKeepAliveCommandMsg : public NetCommandMsg
252279{
253280 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDisconnectKeepAliveCommandMsg, " NetDisconnectKeepAliveCommandMsg" )
@@ -258,6 +285,7 @@ class NetDisconnectKeepAliveCommandMsg : public NetCommandMsg
258285 virtual size_t getPackedByteCount () const ;
259286};
260287
288+ // -----------------------------------------------------------------------------
261289class NetDisconnectPlayerCommandMsg : public NetCommandMsg
262290{
263291 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDisconnectPlayerCommandMsg, " NetDisconnectPlayerCommandMsg" )
@@ -278,6 +306,7 @@ class NetDisconnectPlayerCommandMsg : public NetCommandMsg
278306 UnsignedInt m_disconnectFrame;
279307};
280308
309+ // -----------------------------------------------------------------------------
281310class NetPacketRouterQueryCommandMsg : public NetCommandMsg
282311{
283312 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetPacketRouterQueryCommandMsg, " NetPacketRouterQueryCommandMsg" )
@@ -288,6 +317,7 @@ class NetPacketRouterQueryCommandMsg : public NetCommandMsg
288317 virtual size_t getPackedByteCount () const ;
289318};
290319
320+ // -----------------------------------------------------------------------------
291321class NetPacketRouterAckCommandMsg : public NetCommandMsg
292322{
293323 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetPacketRouterAckCommandMsg, " NetPacketRouterAckCommandMsg" )
@@ -298,6 +328,7 @@ class NetPacketRouterAckCommandMsg : public NetCommandMsg
298328 virtual size_t getPackedByteCount () const ;
299329};
300330
331+ // -----------------------------------------------------------------------------
301332class NetDisconnectChatCommandMsg : public NetCommandMsg
302333{
303334 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDisconnectChatCommandMsg, " NetDisconnectChatCommandMsg" )
@@ -314,6 +345,7 @@ class NetDisconnectChatCommandMsg : public NetCommandMsg
314345 UnicodeString m_text;
315346};
316347
348+ // -----------------------------------------------------------------------------
317349class NetChatCommandMsg : public NetCommandMsg
318350{
319351 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetChatCommandMsg, " NetChatCommandMsg" )
@@ -334,6 +366,7 @@ class NetChatCommandMsg : public NetCommandMsg
334366 Int m_playerMask;
335367};
336368
369+ // -----------------------------------------------------------------------------
337370class NetDisconnectVoteCommandMsg : public NetCommandMsg
338371{
339372 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDisconnectVoteCommandMsg, " NetDisconnectVoteCommandMsg" )
@@ -354,6 +387,7 @@ class NetDisconnectVoteCommandMsg : public NetCommandMsg
354387 UnsignedInt m_voteFrame;
355388};
356389
390+ // -----------------------------------------------------------------------------
357391class NetProgressCommandMsg : public NetCommandMsg
358392{
359393 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetProgressCommandMsg, " NetProgressCommandMsg" )
@@ -369,6 +403,7 @@ class NetProgressCommandMsg: public NetCommandMsg
369403 UnsignedByte m_percent;
370404};
371405
406+ // -----------------------------------------------------------------------------
372407class NetWrapperCommandMsg : public NetCommandMsg
373408{
374409 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetWrapperCommandMsg, " NetWrapperCommandMsg" )
@@ -409,6 +444,7 @@ class NetWrapperCommandMsg : public NetCommandMsg
409444 UnsignedShort m_wrappedCommandID;
410445};
411446
447+ // -----------------------------------------------------------------------------
412448class NetFileCommandMsg : public NetCommandMsg
413449{
414450 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetFileCommandMsg, " NetFileCommandMsg" )
@@ -436,6 +472,7 @@ class NetFileCommandMsg : public NetCommandMsg
436472 UnsignedInt m_dataLength;
437473};
438474
475+ // -----------------------------------------------------------------------------
439476class NetFileAnnounceCommandMsg : public NetCommandMsg
440477{
441478 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetFileAnnounceCommandMsg, " NetFileAnnounceCommandMsg" )
@@ -463,6 +500,7 @@ class NetFileAnnounceCommandMsg : public NetCommandMsg
463500 UnsignedByte m_playerMask;
464501};
465502
503+ // -----------------------------------------------------------------------------
466504class NetFileProgressCommandMsg : public NetCommandMsg
467505{
468506 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetFileProgressCommandMsg, " NetFileProgressCommandMsg" )
@@ -483,6 +521,7 @@ class NetFileProgressCommandMsg : public NetCommandMsg
483521 Int m_progress;
484522};
485523
524+ // -----------------------------------------------------------------------------
486525class NetDisconnectFrameCommandMsg : public NetCommandMsg
487526{
488527 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDisconnectFrameCommandMsg, " NetDisconnectFrameCommandMsg" )
@@ -498,6 +537,7 @@ class NetDisconnectFrameCommandMsg : public NetCommandMsg
498537 UnsignedInt m_disconnectFrame;
499538};
500539
540+ // -----------------------------------------------------------------------------
501541class NetDisconnectScreenOffCommandMsg : public NetCommandMsg
502542{
503543 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetDisconnectScreenOffCommandMsg, " NetDisconnectScreenOffCommandMsg" )
@@ -513,6 +553,7 @@ class NetDisconnectScreenOffCommandMsg : public NetCommandMsg
513553 UnsignedInt m_newFrame;
514554};
515555
556+ // -----------------------------------------------------------------------------
516557class NetFrameResendRequestCommandMsg : public NetCommandMsg
517558{
518559 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (NetFrameResendRequestCommandMsg, " NetFrameResendRequestCommandMsg" )
0 commit comments