CoriEngine
Loading...
Searching...
No Matches
System.cpp
Go to the documentation of this file.
1
#include "
System.hpp
"
2
#include "
WorldSystem/SceneManager.hpp
"
3
4
namespace
Cori
{
5
namespace
World
{
6
void
System::SetOwnerScene(
const
Scene
* scene) {
7
const
auto
result =
SceneManager::GetHandle
(scene->GetSceneID());
8
if
(result) {
9
m_Owner
= result.value();
10
}
11
}
12
}
13
}
SceneManager.hpp
System.hpp
Cori::World::SceneManager::GetHandle
static std::expected< SceneHandle, Core::CoriError<> > GetHandle(const uint32_t sceneID)
Allows you to get SceneHandle if all you know is scene id.
Definition
SceneManager.cpp:52
Cori::World::Scene
A scene in a game world.
Definition
Scene.hpp:20
Cori::World::System::m_Owner
SceneHandle m_Owner
Definition
System.hpp:38
Cori::World
Anything connected to WorldSystem (ECS) is in this namespace.
Definition
AnimationPack.hpp:8
Cori
Global engine namespace.
Definition
AssetLoadStatus.hpp:3
CoriEngine
Engine
src
WorldSystem
Systems
System.cpp
Generated by
1.14.0