resonance 1.0.1
Loading...
Searching...
No Matches
gameconnectfailuremsg.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
21public:
30
41
51 static Message *New();
52
60 virtual Message *Clone();
61
69 virtual int Type();
70
78 virtual const char *GetName() const;
79
90 virtual void PrintExtra(std::ostream &stream) const;
91
92private:
93 HxStr mReason; // +0x04, the text PrintExtra() writes, with a title after the failure it reports
94};
95
virtual Message * Clone()
Produce a heap copy of this message.
virtual const char * GetName() const
Report this message's class name.
virtual void PrintExtra(std::ostream &stream) const
Write the string to a diagnostic stream.
static Message * New()
Produce a message with an empty string on the heap.
virtual int Type()
Report this message's registered identity.
GameConnectFailureMsg()
Construct a message with an empty string.
Definition gameconnectfailuremsg.h:28
GameConnectFailureMsg(const HxStr &reason)
Construct a message carrying a copy of a string.
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
int g_nGameConnectFailureMsgType
Identity that GameConnectFailureMsg::Type() reports.