resonance 1.0.1
Loading...
Searching...
No Matches
scplayerjoinedpacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "game/playerinfo.h"
7
8class IBStream;
9class OBStream;
10
25public:
35
46 static Message *New();
47
55 virtual Message *Clone();
56
64 virtual int Type();
65
73 virtual const char *GetName() const;
74
82 virtual void PrintExtra(std::ostream &stream) const;
83
91 virtual void saveGuts(OBStream &stream) const;
92
100 virtual void restoreGuts(IBStream &stream);
101
102private:
103 PlayerInfo mPlayerInfo; // +0x14
104};
105
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
A player's identity and settings.
Definition playerinfo.h:39
virtual const char * GetName() const
Report this packet's class name.
virtual void restoreGuts(IBStream &stream)
Read the Packet words and the player record back from a stream.
virtual Message * Clone()
Produce a heap copy of this packet.
SCPlayerJoinedPacket()
Construct a packet with a default player record.
virtual int Type()
Report this packet's registered identity.
virtual void saveGuts(OBStream &stream) const
Write the Packet words and the player record to a stream.
static Message * New()
Produce a default-constructed packet on the heap.
virtual void PrintExtra(std::ostream &stream) const
Write the player record to a diagnostic stream through PlayerInfo::Print().
ToAllNetManagersPacket()
Route the packet with the pair 3 and 0.
Definition toallnetmanagerspacket.h:21
int g_nSCPlayerJoinedPacketType
Identity that SCPlayerJoinedPacket::Type() reports.