Rise
The Vieneo Province
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
;
9
10
// command name
11
std::string
name
;
12
13
// only increments after the delay left is 0
14
float
timeOnStack
;
15
16
// time to live in seconds (default is 10)
17
float
ttl
;
18
19
// union doesn't allow std::string
20
std::string
sValue
;
21
int
ivalues
[2];
22
bool
bValue
;
23
24
Command
()
25
{
26
delay
= 0.0f;
27
name
=
""
;
28
timeOnStack
= 0.0f;
29
ZeroMemory(
ivalues
, 2 * 4);
30
bValue
=
false
;
31
ttl
= 10.0f;
32
}
33
};
Command::bValue
bool bValue
Definition:
Command.h:22
Command::timeOnStack
float timeOnStack
Definition:
Command.h:14
Command::ivalues
int ivalues[2]
Definition:
Command.h:21
Command::name
std::string name
Definition:
Command.h:11
Command::ttl
float ttl
Definition:
Command.h:17
Command::Command
Command()
Definition:
Command.h:24
Command
Definition:
Command.h:5
Command::sValue
std::string sValue
Definition:
Command.h:20
Command::delay
float delay
Definition:
Command.h:8
Command.h
Generated on Tue May 4 2021 15:18:09 for Rise by
1.8.14