Tramway SDK
core.h
Go to the documentation of this file.
1// Tramway Drifting and Dungeon Exploration Simulator SDK Runtime
2
3#ifndef TRAM_SDK_FRAMEWORK_CORE_H
4#define TRAM_SDK_FRAMEWORK_CORE_H
5
6#include <cstdint>
7
8namespace tram {
9
10typedef uint32_t id_t;
11
13
14uint32_t GetTick();
15uint32_t GetFrame();
16
17double GetTickTime();
18double GetFrameTime();
19
20uint32_t GetDeltaTick();
21float GetDeltaTime();
22
23const char* GetVersion();
24
25namespace Core {
26 void Init();
27 void Update();
28}
29
30}
31
32#endif // TRAM_SDK_FRAMEWORK_CORE_H
void Init()
Initializes the core of the framework.
Definition: core.cpp:42
void Update()
Updates the core system.
Definition: core.cpp:57
Serialization, i.e.
uint32_t id_t
Definition: core.h:10
double GetTickTime()
Same as GetFrameTime()
Definition: core.cpp:109
const char * GetVersion()
Returns the version identifier of the runtime.
Definition: core.cpp:129
uint32_t GetTick()
Returns the current tick.
Definition: core.cpp:90
uint32_t GetFrame()
Returns the current frame.
Definition: core.cpp:96
uint32_t GetDeltaTick()
Returns the tick delta.
Definition: core.cpp:103
id_t GenerateID()
Generates a unique ID number.
Definition: core.cpp:35
double GetFrameTime()
Returns the time at the start of the current frame.
Definition: core.cpp:116
float GetDeltaTime()
Returns the time passed between frames.
Definition: core.cpp:124