resonance 1.0.1
Loading...
Searching...
No Matches
nearesttrackmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
18class NearestTrackMsg : public Message {
19public:
29 static Message *New();
30
38 virtual Message *Clone();
39
47 virtual int Type();
48
56 virtual const char *GetName() const;
57
65 virtual void PrintExtra(std::ostream &stream) const;
66
67private:
68 int mTrack; // +0x04, or -1 (written as `reset` by PrintExtra())
69};
70
81extern int g_nNearestTrackMsgType;
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Event the game passes between a MsgSource and a MsgSink.
Definition nearesttrackmsg.h:18
virtual int Type()
Report this message's registered identity.
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
virtual void PrintExtra(std::ostream &stream) const
Write the word to a diagnostic stream, or reset when it is -1.
static Message * New()
Produce a default-constructed message on the heap.
int g_nNearestTrackMsgType
Identity that NearestTrackMsg::Type() reports.