Tramway SDK
Classes | Typedefs | Enumerations | Functions
tram::System Namespace Reference

Classes

struct  SystemInfo
 

Typedefs

typedef uint32_t system_t
 

Enumerations

enum  System : system_t {
  SYSTEM_CORE , SYSTEM_PLATFORM , SYSTEM_UI , SYSTEM_GUI ,
  SYSTEM_ASYNC , SYSTEM_RENDER , SYSTEM_PHYSICS , SYSTEM_AUDIO ,
  SYSTEM_MISC , SYSTEM_LAST
}
 

Functions

uint32_t Register (char const *name, char const *short_name)
 Registers a new system. More...
 
char const * GetName (uint32_t system)
 Retrieves the full name of a system. More...
 
char const * GetShortName (uint32_t system)
 Retrieves the short name of a system. More...
 
void SetInitialized (uint32_t system, bool is_initialized)
 Sets the initialization status of a system. More...
 
bool IsInitialized (uint32_t system)
 Checks if a system is initialized. More...
 
void SetUpdated (uint32_t system, bool is_updated)
 Sets the update status of a system. More...
 
bool IsUpdated (uint32_t system)
 Checks if a system is updated. More...
 
system_t GetSystemCount ()
 Returns the total count of registered systems. More...
 

Typedef Documentation

◆ system_t

typedef uint32_t tram::System::system_t

Enumeration Type Documentation

◆ System

Enumerator
SYSTEM_CORE 
SYSTEM_PLATFORM 
SYSTEM_UI 
SYSTEM_GUI 
SYSTEM_ASYNC 
SYSTEM_RENDER 
SYSTEM_PHYSICS 
SYSTEM_AUDIO 
SYSTEM_MISC 
SYSTEM_LAST 

Function Documentation

◆ GetName()

char const * tram::System::GetName ( uint32_t  system)

Retrieves the full name of a system.

◆ GetShortName()

char const * tram::System::GetShortName ( uint32_t  system)

Retrieves the short name of a system.

◆ GetSystemCount()

uint32_t tram::System::GetSystemCount ( )

Returns the total count of registered systems.

◆ IsInitialized()

bool tram::System::IsInitialized ( uint32_t  system)

Checks if a system is initialized.

◆ IsUpdated()

bool tram::System::IsUpdated ( uint32_t  system)

Checks if a system is updated.

◆ Register()

system_t tram::System::Register ( char const *  name,
char const *  short_name 
)

Registers a new system.

Parameters
nameFull name of the system.
short_nameName of the system that will be displayed in log messages.

◆ SetInitialized()

void tram::System::SetInitialized ( uint32_t  system,
bool  is_initialized 
)

Sets the initialization status of a system.

◆ SetUpdated()

void tram::System::SetUpdated ( uint32_t  system,
bool  is_updated 
)

Sets the update status of a system.