Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
|
Runs scripts that are added to the game More...
#include <scriptrunner.h>
Public Member Functions | |
SysScript (Game &game) | |
~SysScript () | |
void | DoSystem () |
int | Interval () |
Public Member Functions inherited from cqsp::common::systems::ISimulationSystem | |
ISimulationSystem (Game &game) | |
virtual | ~ISimulationSystem ()=default |
Private Attributes | |
std::vector< sol::table > | events |
Additional Inherited Members | |
Protected Member Functions inherited from cqsp::common::systems::ISimulationSystem | |
Game & | GetGame () |
Universe & | GetUniverse () |
Runs scripts that are added to the game
To run a script every single tick, you have to do this:
This is likely to be unoptimized because it runs all the scripts every single tick.
|
explicit |
cqsp::common::systems::SysScript::~SysScript | ( | ) |
|
virtual |
Implements cqsp::common::systems::ISimulationSystem.
|
inlinevirtual |
How often is DoSystem
is run. It will be run every n number of ticks when the tick becomes a multiple of the number below. The default is 24
Reimplemented from cqsp::common::systems::ISimulationSystem.
|
private |