SimulationManager::set_Running Method

Setting this property to false allows pausing the simulation.

Syntax

void SimulationManager::set_Running(
bool running
)

Parameters

bool running
If the simulation should be running (true) or paused (false).

Return value

None.

Remarks

Plugins should be careful with setting this property to false. The game will stop running the simulation, but also any player input/menuing will not work. The game will still render frames, so the only way to reset the property back to true is to do it from the Render() callback of the plugin. If your plugin receives messages from a socket, it must process these in the Render() callback, otherwise you may end up in a deadlock state.