Tramway SDK
core.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_CORE_H
5#define TRAM_SDK_FRAMEWORK_CORE_H
6
7#include <cstdint>
8
9namespace tram {
10
11typedef uint32_t id_t;
12
14
15uint32_t GetTick();
16double GetTickTime();
17float GetDeltaTime();
18
19const char* GetVersion();
20
21namespace Core {
22 void Init();
23 void Update();
24}
25
26}
27
28#endif // TRAM_SDK_FRAMEWORK_CORE_H
void Init()
Initializes the core of the framework.
Definition: core.cpp:28
void Update()
Updates the core system.
Definition: core.cpp:38
Definition: api.h:9
uint32_t id_t
Definition: core.h:11
double GetTickTime()
Returns the time at the start of the current tick.
Definition: core.cpp:64
const char * GetVersion()
Definition: core.cpp:72
uint32_t GetTick()
Returns the current tick.
Definition: core.cpp:57
id_t GenerateID()
Generates a unique ID number.
Definition: core.cpp:21
float GetDeltaTime()
Definition: core.cpp:68