resonance 1.0.1
Loading...
Searching...
No Matches
remixfxmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
5class Player;
6
19class RemixFXMsg : public Message {
20public:
28 }
29
42 RemixFXMsg(int nTrack, int nBar, int nEffect, int bEnabled, Player *pPlayer)
43 : mTrack(nTrack), mBar(nBar), mEffect(nEffect), mEnabled(bEnabled), mPlayer(pPlayer) {
44 }
45
55 static Message *New();
56
64 virtual Message *Clone();
65
73 virtual int Type();
74
82 virtual const char *GetName() const;
83
84private:
85 int mTrack; // +0x04
86 int mBar; // +0x08
87 int mEffect; // +0x0c
88 int mEnabled; // +0x10
89 Player *mPlayer; // +0x14
90};
91
102extern int g_nRemixFXMsgType;
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
One participant in a session, local or remote.
Definition player.h:39
RemixFXMsg(int nTrack, int nBar, int nEffect, int bEnabled, Player *pPlayer)
Report one remix effect toggle.
Definition remixfxmsg.h:42
RemixFXMsg()
Construct a message with every field unset.
Definition remixfxmsg.h:27
static Message * New()
Produce a default-constructed message on the heap.
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.
int g_nRemixFXMsgType
Identity that RemixFXMsg::Type() reports.