Latest version:
Tramway SDK 0.0.9
Github
Quick links
Home
Get Started

Systems


The system concept was created to help identify parts of code.

This allows, for example, to check if a system has been initialized. This is useful for systems which have a dependency on another system – they can check if the system that they have a dependecy on has been initialized before initializing themselves.

This concept also allows tracking statistics and filtering logging based on the system from which the logs originate.

Programming in C++


#include <framework/system.h>
API documentation page.

Some systems are already registered into the framework, but you can register your own systems too.

system_t frog_system = System::Register("frog");

// now we can initialize it
System::SetInitialize(frog_system, true);
assert(System::IsInitialized(frog_system));