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 
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 };
bool bValue
Definition: Command.h:22
float timeOnStack
Definition: Command.h:14
int ivalues[2]
Definition: Command.h:21
std::string name
Definition: Command.h:11
float ttl
Definition: Command.h:17
Command()
Definition: Command.h:24
Definition: Command.h:5
std::string sValue
Definition: Command.h:20
float delay
Definition: Command.h:8