Tramway SDK
system.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_FRAMEWORK_SYSTEM_H
5#define TRAM_SDK_FRAMEWORK_SYSTEM_H
6
7#include <cstdint>
8
9namespace tram::System {
10
11typedef uint32_t system_t;
23};
24
25system_t Register(char const* name, char const* short_name);
26void SetInitialized(system_t system, bool is_initialized);
27bool IsInitialized(system_t system);
28void SetUpdated(system_t system, bool is_updated);
29bool IsUpdated(system_t system);
30char const* GetName(system_t system);
31char const* GetShortName(system_t system);
32uint32_t GetSystemCount();
33
34}
35
36#endif // TRAM_SDK_FRAMEWORK_SYSTEM_H
Definition: system.cpp:7
System
Definition: system.h:12
@ SYSTEM_LAST
Definition: system.h:22
@ SYSTEM_ASYNC
Definition: system.h:17
@ SYSTEM_RENDER
Definition: system.h:18
@ SYSTEM_PHYSICS
Definition: system.h:19
@ SYSTEM_GUI
Definition: system.h:16
@ SYSTEM_CORE
Definition: system.h:13
@ SYSTEM_UI
Definition: system.h:15
@ SYSTEM_MISC
Definition: system.h:21
@ SYSTEM_AUDIO
Definition: system.h:20
@ SYSTEM_PLATFORM
Definition: system.h:14
bool IsInitialized(uint32_t system)
Checks if a system is initialized.
Definition: system.cpp:65
void SetUpdated(uint32_t system, bool is_updated)
Sets the update status of a system.
Definition: system.cpp:74
void SetInitialized(uint32_t system, bool is_initialized)
Sets the initialization status of a system.
Definition: system.cpp:59
char const * GetName(uint32_t system)
Retrieves the full name of a system.
Definition: system.cpp:47
system_t GetSystemCount()
Returns the total count of registered systems.
Definition: system.cpp:89
uint32_t system_t
Definition: system.h:11
bool IsUpdated(uint32_t system)
Checks if a system is updated.
Definition: system.cpp:80
char const * GetShortName(uint32_t system)
Retrieves the short name of a system.
Definition: system.cpp:53
uint32_t Register(char const *name, char const *short_name)
Registers a new system.
Definition: system.cpp:33