Torque3D Documentation / _generateds / StandardMainLoop

StandardMainLoop

Engine/source/app/mainLoop.h

Support class to simplify the process of writing a main loop for Torque apps.

More...

Public Static Functions

bool

A standard mainloop implementation.

Gets the return status code of the current process.

bool
handleCommandLine(S32 argc, const char ** argv)

Pass command line arguments to registered functions and main.tscript.

init()

Initialize core libraries and call registered init functions.

setRestart(bool restart)

Shut down the core libraries and call registered shutdown fucntions.

Private Static Functions

Handle "pre shutdown" tasks like notifying scripts BEFORE we delete stuff from under them.

Detailed Description

Support class to simplify the process of writing a main loop for Torque apps.

Public Static Functions

doMainLoop()

A standard mainloop implementation.

getReturnStatus()

Gets the return status code of the current process.

handleCommandLine(S32 argc, const char ** argv)

Pass command line arguments to registered functions and main.tscript.

init()

Initialize core libraries and call registered init functions.

requiresRestart()

setRestart(bool restart)

shutdown()

Shut down the core libraries and call registered shutdown fucntions.

Private Static Functions

preShutdown()

Handle "pre shutdown" tasks like notifying scripts BEFORE we delete stuff from under them.