memory setup
This commit is contained in:
20
src/game/Global.h
Normal file
20
src/game/Global.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
struct SharedData;
|
||||
|
||||
namespace Game
|
||||
{
|
||||
struct GameInstance
|
||||
{
|
||||
bool IsInitialized = false;
|
||||
uint64_t Size = sizeof(GameInstance);
|
||||
uint32_t FrameCounter = 0;
|
||||
int64_t StartTime = 0;
|
||||
};
|
||||
|
||||
SharedData& GetShared();
|
||||
void SetShared(SharedData& instance);
|
||||
GameInstance& GetInstance();
|
||||
void SetInstance(GameInstance& instance);
|
||||
}
|
||||
Reference in New Issue
Block a user