Public Member Functions | Private Attributes | Static Private Attributes | Friends

ScriptObject::ActiveInstance Class Reference

A class that handles the current active instance. More...

#include <script_object.hpp>

Public Member Functions

 ActiveInstance (ScriptInstance *instance)

Private Attributes

ScriptInstancelast_active
 The active instance before we go instantiated.

Static Private Attributes

static ScriptInstanceactive = NULL
 The global current active instance.

Friends

class ScriptObject

Detailed Description

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.


The documentation for this class was generated from the following files: