SimApi Control resume

From SIMboxWiki
Jump to navigation Jump to search

Icon attributes.pngstatic bool SimApi::Control::resume()


    Resumes the simulation after it was paused.


    Type: bool   Description: True, if succeeded; otherwise, false;


The simulation pause/resume mechanism has a counter. Each call for pause increases the counter and a call for resume decreases the counter. When resume is called it decreases the counter by 1. The simulation will resume only when the counter's value will be 0 again.

    Code Sample

//This function pauses the simulation and opens a dialog window and resumes the simulation            
void MyExtension::ShowMyDialog()

	MyDialog dlg;

    See Also


    Related Links

     Simulation Time Overview