resonance 1.0.1
Loading...
Searching...
No Matches
scstartplayingpacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
6
7class IBStream;
8class OBStream;
9
34public:
45 static Message *New();
46
54 virtual Message *Clone();
55
63 virtual int Type();
64
72 virtual const char *GetName() const;
73
82 virtual void saveGuts(OBStream &) const {
83 }
84
93 virtual void restoreGuts(IBStream &) {
94 }
95
104 virtual void PrintExtra(std::ostream &) const {
105 }
106};
107
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 scstartplayingpacket.h:33
virtual void restoreGuts(IBStream &)
Read nothing, replacing Packet::restoreGuts().
Definition scstartplayingpacket.h:93
virtual const char * GetName() const
Report this packet's class name.
virtual void saveGuts(OBStream &) const
Write nothing, replacing Packet::saveGuts().
Definition scstartplayingpacket.h:82
virtual int Type()
Report this packet's registered identity.
virtual void PrintExtra(std::ostream &) const
Write nothing.
Definition scstartplayingpacket.h:104
virtual Message * Clone()
Produce a heap copy of this packet.
static Message * New()
Produce a default-constructed packet on the heap.
ToAllGameControllersPacket()
Route the packet with the pair 3 and 2.
Definition toallgamecontrollerspacket.h:21
int g_nSCStartPlayingPacketType
Identity that SCStartPlayingPacket::Type() reports.