Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
World.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
15#pragma once
16
17#include "Types.hpp"
18#include "ServiceRegistry.hpp"
19
20namespace esengine {
21
22namespace ecs {
23class Registry;
24}
25
40struct World {
44
46 template<typename T>
47 T& require() { return services.require<T>(); }
48};
49
50} // namespace esengine
Typed service locator for engine subsystems.
Core type definitions and utilities for ESEngine.
Typed service locator for engine subsystems.
Central container for all entities and components.
Definition Registry.hpp:73
float f32
32-bit floating point
Definition Types.hpp:59
Context passed to every System::update call.
Definition World.hpp:40
f32 deltaTime
Seconds since last frame.
Definition World.hpp:43
T & require()
Convenience accessor for services.
Definition World.hpp:47
ecs::Registry & registry
ECS entity/component storage.
Definition World.hpp:41
ServiceRegistry & services
All engine services.
Definition World.hpp:42