resonance 1.0.1
Loading...
Searching...
No Matches
advancesectiontogglemsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "mid/tick.h"
4#include "msg/message.h"
5
23public:
32
41 AdvanceSectionToggleMsg(int nAdvance, Sch::Tick position)
42 : mAdvance(nAdvance), mPosition(position) {
43 }
44
54 static Message *New();
55
63 virtual Message *Clone();
64
72 virtual int Type();
73
81 virtual const char *GetName() const;
82
84
85private:
86 Sch::Tick mPosition; // +0x08
87};
88
int g_nAdvanceSectionToggleMsgType
Identity that AdvanceSectionToggleMsg::Type() reports.
virtual int Type()
Report this message's registered identity.
AdvanceSectionToggleMsg(int nAdvance, Sch::Tick position)
Report the section toggle.
Definition advancesectiontogglemsg.h:41
virtual Message * Clone()
Produce a heap copy of this message.
virtual const char * GetName() const
Report this message's class name.
AdvanceSectionToggleMsg()
Construct a message with the payload unset.
Definition advancesectiontogglemsg.h:30
int mAdvance
Definition advancesectiontogglemsg.h:83
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
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70