C4 Engine
C4 Engine API Documentation

class Global

Defined in:  C4Root.h
The Global class template is the base class for types having a global instance.
Definition

template <class type> class Global

Template Parameters
type The type of the class having a global instance.
Constructor

Global(type *& instance);

Parameters
instance A reference to the global variable that serves as the pointer to the instance of the object whose type is given by the type template parameter.
Description
The Global class template is used to store a pointer to a global instance of a class. It can only exist as a base class for the class of the type given by the type template parameter.