resonance 1.0.1
Loading...
Searching...
No Matches
scallclientsstatuspacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <vector>
5
7
8class IBStream;
9class OBStream;
10
25public:
33 int mId;
34 int mStatus;
35 };
36
47 static Message *New();
48
56 virtual Message *Clone();
57
65 virtual int Type();
66
74 virtual const char *GetName() const;
75
83 virtual void PrintExtra(std::ostream &stream) const;
84
92 virtual void saveGuts(OBStream &stream) const;
93
101 virtual void restoreGuts(IBStream &stream);
102
113 void AddClientStatus(int nId, int nStatus);
114
115private:
116 std::vector<ClientInfoEntry> mClients; // +0x14
117};
118
Input half of the byte stream interface.
Definition ibstream.h:36
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Output half of the byte stream interface.
Definition obstream.h:25
Network packet the game sends between game systems.
Definition scallclientsstatuspacket.h:24
virtual void PrintExtra(std::ostream &stream) const
Write every entry to a diagnostic stream as (id: id stat: status ) .
static Message * New()
Produce a packet with no entries on the heap.
virtual void saveGuts(OBStream &stream) const
Write the Packet words, the entry count, and both words of every entry to a stream.
virtual Message * Clone()
Produce a heap copy of this packet.
virtual int Type()
Report this packet's registered identity.
virtual void restoreGuts(IBStream &stream)
Read the Packet words and the entry count, resize the vector, and read every entry in place.
virtual const char * GetName() const
Report this packet's class name.
void AddClientStatus(int nId, int nStatus)
Append one entry.
ToAllOtherNetManagersPacket()
Route the packet with the pair 2 and 0.
Definition toallothernetmanagerspacket.h:21
int g_nSCAllClientsStatusPacketType
Identity that SCAllClientsStatusPacket::Type() reports.
One client's status, eight bytes, from the stride the copy constructor divides by.
Definition scallclientsstatuspacket.h:32
int mId
Definition scallclientsstatuspacket.h:33
int mStatus
Definition scallclientsstatuspacket.h:34