A class that handles the current active instance. More...
#include <script_object.hpp>
Public Member Functions | |
ActiveInstance (ScriptInstance *instance) | |
Private Attributes | |
ScriptInstance * | last_active |
The active instance before we go instantiated. | |
Static Private Attributes | |
static ScriptInstance * | active = NULL |
The global current active instance. | |
Friends | |
class | ScriptObject |
A class that handles the current active instance.
By instantiating it at the beginning of a function with the current active instance, it remains active till the scope of the variable closes. It then automatically reverts to the active instance it was before instantiating.
Definition at line 43 of file script_object.hpp.