resonance 1.0.1
Loading...
Searching...
No Matches
lobbyconnectionlostmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "msg/message.h"
6#include "os/hxstr.h"
7
22public:
31
42
52 static Message *New();
53
61 virtual Message *Clone();
62
70 virtual int Type();
71
79 virtual const char *GetName() const;
80
92 virtual void PrintExtra(std::ostream &stream) const;
93
94private:
95 HxStr mReason; // +0x04, with a title like GameConnectionLostMsg's printed string
96};
97
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Produce a message with an empty string on the heap.
LobbyConnectionLostMsg(const HxStr &reason)
Construct a message carrying a copy of a string.
LobbyConnectionLostMsg()
Construct a message with an empty string.
Definition lobbyconnectionlostmsg.h:29
virtual int Type()
Report this message's registered identity.
virtual const char * GetName() const
Report this message's class name.
virtual void PrintExtra(std::ostream &stream) const
Write nothing.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
int g_nLobbyConnectionLostMsgType
Identity that LobbyConnectionLostMsg::Type() reports.