Olympe Engine
2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Source
GameState.cpp
Go to the documentation of this file.
1
#include "
GameState.h
"
2
3
namespace
{
4
// single atomic storage for the state (int) - one definition in this TU
5
static
std::atomic<int>
g_state
(
static_cast<
int
>
(
GameState::GameState_Running
));
6
}
7
8
namespace
GameStateManager
9
{
10
void
SetState
(
GameState
s
)
11
{
12
g_state.store(
static_cast<
int
>
(
s
));
13
}
14
15
GameState
GetState
()
16
{
17
return
static_cast<
GameState
>
(g_state.load());
18
}
19
}
GetComponentTypeID_Static
ComponentTypeID GetComponentTypeID_Static()
Definition
ECS_Entity.h:56
GameState.h
GameState
GameState
Definition
GameState.h:7
GameState::GameState_Running
@ GameState_Running
GameStateManager
Definition
GameState.cpp:9
GameStateManager::GetState
GameState GetState()
Definition
GameState.cpp:15
GameStateManager::SetState
void SetState(GameState s)
Definition
GameState.cpp:10
anonymous_namespace{GameState.cpp}::g_state
static std::atomic< int > g_state(static_cast< int >(GameState::GameState_Running))
Generated on Tue Feb 17 2026 13:49:10 for Olympe Engine by
1.9.8