Rise
The Vieneo Province
Loading...
Searching...
No Matches
Command.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5struct Command
6{
7 // wait number of seconds before executing command
8 float delay = 0.0f;
9
10 // command name
11 std::string name = "";
12
13 // only increments after the delay left is 0
14 float timeOnStack = 0.0f;
15
16 // time to live in seconds (default is 10)
17 float ttl = 10.0f;
18
19 // union doesn't allow std::string
20 std::string sValue;
21 int ivalues[2]{};
22 bool bValue = false;
23 // Optional scalar payload. VMU: finite values > 0 set playback gain;
24 // zero/negative/non-finite values retain the normal volume (legacy default).
25 float fValue = 0.0f;
26
27 // priority ... 0 is highest, 255 is lowest
28 unsigned char priority = 127;
29
30 friend bool operator< (const Command& i, const Command& j)
31 {
32 return i.priority < j.priority;
33 }
34};
std::string sValue
Definition Command.h:20
float timeOnStack
Definition Command.h:14
float fValue
Definition Command.h:25
bool bValue
Definition Command.h:22
unsigned char priority
Definition Command.h:28
int ivalues[2]
Definition Command.h:21
std::string name
Definition Command.h:11
float delay
Definition Command.h:8
friend bool operator<(const Command &i, const Command &j)
Definition Command.h:30
float ttl
Definition Command.h:17