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 
30  {
31  delay = 0.0f;
32  name = "";
33  timeOnStack = 0.0f;
34  ivalue = 0;
35  guid = "";
36  ttl = 10.0f;
37  }
38 };
float fvalue
Definition: Command.h:22
float timeOnStack
only increments after the delay left is 0
Definition: Command.h:14
char svalue[64]
Definition: Command.h:24
std::string name
command name
Definition: Command.h:11
float ttl
time to live in seconds (default is 10)
Definition: Command.h:17
Command()
Definition: Command.h:29
Definition: Command.h:5
std::string guid
Definition: Command.h:27
bool bvalue
Definition: Command.h:23
int ivalue
Definition: Command.h:21
float delay
wait number of seconds before executing command
Definition: Command.h:8