resonance 1.0.1
Loading...
Searching...
No Matches
freestylefxmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
19class FreestyleFXMsg : public Message {
20public:
29
40 FreestyleFXMsg(int nTrack, int nBar, int nEndBar)
41 : mTrack(nTrack), mBar(nBar), mEndBar(nEndBar) {
42 }
43
53 static Message *New();
54
62 virtual Message *Clone();
63
71 virtual int Type();
72
80 virtual const char *GetName() const;
81
88 int mTrack;
89
90private:
91 int mBar; // +0x08
92 int mEndBar; // +0x0c
93};
94
105extern int g_nFreestyleFXMsgType;
virtual const char * GetName() const
Report this message's class name.
int mTrack
The track.
Definition freestylefxmsg.h:88
FreestyleFXMsg(int nTrack, int nBar, int nEndBar)
Report a freestyle effect over a range of bars on a track.
Definition freestylefxmsg.h:40
FreestyleFXMsg()
Construct a message with the payload unset.
Definition freestylefxmsg.h:27
virtual Message * Clone()
Produce a heap copy of this message.
virtual int Type()
Report this message's registered identity.
static Message * New()
Produce a default-constructed message on the heap.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
int g_nFreestyleFXMsgType
Identity that FreestyleFXMsg::Type() reports.