resonance 1.0.1
Loading...
Searching...
No Matches
csclientstatuspacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "msg/tohostpacket.h"
6
27public:
38 static Message *New();
39
47 virtual Message *Clone();
48
56 virtual int Type();
57
65 virtual const char *GetName() const;
66
76 virtual void PrintExtra(std::ostream &stream) const;
77
87 virtual void saveGuts(OBStream &stream) const;
88
98 virtual void restoreGuts(IBStream &stream);
99
100private:
101 int mStatus;
102};
103
Network packet the game sends between game systems.
Definition csclientstatuspacket.h:26
static Message * New()
Produce a default-constructed packet on the heap.
virtual void restoreGuts(IBStream &stream)
Read the packet back from a stream.
virtual void saveGuts(OBStream &stream) const
Write the packet to a stream.
virtual const char * GetName() const
Report this packet's class name.
virtual int Type()
Report this packet's registered identity.
virtual Message * Clone()
Produce a heap copy of this packet.
virtual void PrintExtra(std::ostream &stream) const
Write the payload to a diagnostic stream.
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
ToHostPacket()
Route the packet with the pair 0 and 0.
Definition tohostpacket.h:21
int g_nCSClientStatusPacketType
Identity that CSClientStatusPacket::Type() reports.