Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
Command.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
struct
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
};
Command
Definition
Command.h:6
Command::sValue
std::string sValue
Definition
Command.h:20
Command::timeOnStack
float timeOnStack
Definition
Command.h:14
Command::fValue
float fValue
Definition
Command.h:25
Command::bValue
bool bValue
Definition
Command.h:22
Command::priority
unsigned char priority
Definition
Command.h:28
Command::ivalues
int ivalues[2]
Definition
Command.h:21
Command::name
std::string name
Definition
Command.h:11
Command::delay
float delay
Definition
Command.h:8
Command::operator<
friend bool operator<(const Command &i, const Command &j)
Definition
Command.h:30
Command::ttl
float ttl
Definition
Command.h:17
Command.h
Generated on
for Rise by
1.18.0