resonance 1.0.1
Loading...
Searching...
No Matches
bsloadlevelpacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "game/gameparams.h"
6#include "msg/tohostpacket.h"
7
8class IBStream;
9class OBStream;
10
25public:
35
47
58 static Message *New();
59
67 virtual Message *Clone();
68
76 virtual int Type();
77
85 virtual const char *GetName() const;
86
94 virtual void PrintExtra(std::ostream &stream) const;
95
103 virtual void saveGuts(OBStream &stream) const;
104
112 virtual void restoreGuts(IBStream &stream);
113
124
125private:
126 GameParams mParams; // +0x14
127};
128
138extern int g_nBSLoadLevelPacketType;
int g_nBSLoadLevelPacketType
Identity that BSLoadLevelPacket::Type() reports.
BSLoadLevelPacket()
Construct a packet with default settings.
static Message * New()
Produce a packet with default settings on the heap.
GameParams GetParams()
Report the game settings.
virtual void restoreGuts(IBStream &stream)
Read the fields back in the order saveGuts() wrote them.
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 settings to a diagnostic stream through GameParams::Print().
BSLoadLevelPacket(const GameParams &params)
Construct a packet carrying a copy of some settings.
virtual void saveGuts(OBStream &stream) const
Write the Packet words, the settings, and the Packet word at +0x0c again to a stream.
virtual const char * GetName() const
Report this packet's class name.
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
ToHostPacket()
Route the packet with the pair 0 and 0.
Definition tohostpacket.h:21