Avionics
Dropship Simulator
Command.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
struct
Command
6
{
8
float
delay
;
9
11
std::string
name
;
12
14
float
timeOnStack
;
15
17
float
ttl
;
18
19
union
20
{
21
int
ivalue
;
22
float
fvalue
;
23
bool
bvalue
;
24
char
svalue
[64];
25
};
26
27
std::string
guid
;
28
29
Command
()
30
{
31
delay
= 0.0f;
32
name
=
""
;
33
timeOnStack
= 0.0f;
34
ivalue
= 0;
35
guid
=
""
;
36
ttl
= 10.0f;
37
}
38
};
Command::fvalue
float fvalue
Definition:
Command.h:22
Command::timeOnStack
float timeOnStack
only increments after the delay left is 0
Definition:
Command.h:14
Command::svalue
char svalue[64]
Definition:
Command.h:24
Command::name
std::string name
command name
Definition:
Command.h:11
Command::ttl
float ttl
time to live in seconds (default is 10)
Definition:
Command.h:17
Command::Command
Command()
Definition:
Command.h:29
Command
Definition:
Command.h:5
Command::guid
std::string guid
Definition:
Command.h:27
Command::bvalue
bool bvalue
Definition:
Command.h:23
Command::ivalue
int ivalue
Definition:
Command.h:21
Command::delay
float delay
wait number of seconds before executing command
Definition:
Command.h:8
Command.h
Generated on Sat Feb 13 2021 09:30:41 for Avionics by
1.8.14