resonance 1.0.1
Loading...
Searching...
No Matches
scloadlevelpacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "game/gameparams.h"
7
8class IBStream;
9class OBStream;
10
25public:
35
46
57 static Message *New();
58
66 virtual Message *Clone();
67
75 virtual int Type();
76
84 virtual const char *GetName() const;
85
93 virtual void PrintExtra(std::ostream &stream) const;
94
102 virtual void saveGuts(OBStream &stream) const;
103
111 virtual void restoreGuts(IBStream &stream);
112
123
124private:
125 GameParams mParams; // +0x14
126};
127
137extern int g_nSCLoadLevelPacketType;
Settings a game session is started with.
Definition gameparams.h:42
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
static Message * New()
Produce a packet with default settings on the heap.
virtual Message * Clone()
Produce a heap copy of this packet.
virtual int Type()
Report this packet's registered identity.
GameParams GetParams()
Report the game settings.
virtual void PrintExtra(std::ostream &stream) const
Write the settings to a diagnostic stream through GameParams::Print().
virtual void restoreGuts(IBStream &stream)
Read the Packet words and the settings back from a stream.
virtual const char * GetName() const
Report this packet's class name.
SCLoadLevelPacket(const GameParams &params)
Construct a packet carrying a copy of some settings.
virtual void saveGuts(OBStream &stream) const
Write the Packet words and the settings to a stream.
SCLoadLevelPacket()
Construct a packet with default settings.
ToAllGameControllersPacket()
Route the packet with the pair 3 and 2.
Definition toallgamecontrollerspacket.h:21
int g_nSCLoadLevelPacketType
Identity that SCLoadLevelPacket::Type() reports.