CoriEngine
Loading...
Searching...
No Matches
System.cpp
Go to the documentation of this file.
1#include "System.hpp"
3
4namespace 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}
static std::expected< SceneHandle, Core::CoriError<> > GetHandle(const uint32_t sceneID)
Allows you to get SceneHandle if all you know is scene id.
A scene in a game world.
Definition Scene.hpp:20
SceneHandle m_Owner
Definition System.hpp:38
Anything connected to WorldSystem (ECS) is in this namespace.
Global engine namespace.