resonance 1.0.1
Loading...
Searching...
No Matches
looptoolmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "mid/tick.h"
4#include "msg/message.h"
5
6class Player;
7
24class LoopToolMsg : public Message {
25public:
33 }
34
45 LoopToolMsg(Player *pPlayer, Sch::Tick position, int nTrack)
46 : mPlayer(pPlayer), mPosition(position), mTrack(nTrack) {
47 }
48
58 static Message *New();
59
67 virtual Message *Clone();
68
76 virtual int Type();
77
85 virtual const char *GetName() const;
86
87 // Public because LocalPlayer::DispatchPriv() reads both directly at `0x0011ee48` and
88 // `0x0011ee54`, and the image has no accessor.
91
92private:
93 int mTrack; // +0x0c
94};
95
106extern int g_nLoopToolMsgType;
virtual const char * GetName() const
Report this message's class name.
Player * mPlayer
Definition looptoolmsg.h:89
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Produce a default-constructed message on the heap.
LoopToolMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition looptoolmsg.h:32
LoopToolMsg(Player *pPlayer, Sch::Tick position, int nTrack)
Report a loop-tool press.
Definition looptoolmsg.h:45
virtual int Type()
Report this message's registered identity.
Sch::Tick mPosition
Definition looptoolmsg.h:90
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
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int g_nLoopToolMsgType
Identity that LoopToolMsg::Type() reports.