C4 Engine
C4 Engine API Documentation

Engine::AddVariable

Defined in:  C4Engine.h
Registers a system variable.
Prototype

bool AddVariable(Variable *variable);

Parameters
variable A pointer to the variable to register.
Description
The AddVariable function registers the system variable specified by the variable parameter with the engine. If the variable is successfully registered, then the return value is true. If another variable with the same name has already been registered, then the return value is false, and the new variable is not registered.
See Also

Engine::GetVariable

Engine::GetFirstVariable

Variable