Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
TilemapSystem.hpp
Go to the documentation of this file.
1#pragma once
2#include "ecs/System.hpp"
3#include "ecs/Registry.hpp"
6
7namespace Engine {
8
14 public:
21
26 void update(float dt) override;
27
28 private:
31
32 void rebuildTilemap(Entity entity, TilemapComponent& tilemap);
33 };
34
35} // namespace Engine
#define ENGINE_API
Definition EngineAPI.hpp:10
VulkanRenderer & renderer
Definition TilemapSystem.hpp:30
void update(float dt) override
Updates all dirty tilemaps, rebuilding geometry and colliders.
Definition TilemapSystem.cpp:25
void rebuildTilemap(Entity entity, TilemapComponent &tilemap)
Definition TilemapSystem.cpp:33
TilemapSystem(Registry &reg, VulkanRenderer &renderer)
Construct a new Tilemap System.
Definition TilemapSystem.cpp:16
Registry & registry
Definition TilemapSystem.hpp:29
Lightweight identifier representing a game object in the Entity Component System.
Definition Entity.hpp:11
Coordinates entities and components, providing creation, removal, lookup, and views.
Definition Registry.hpp:30
Base class for ECS systems that process sets of entities.
Definition System.hpp:12
Manages core Vulkan pipeline states, device interaction, frames, buffers, and command submissions.
Definition VulkanRenderer.hpp:127
Definition Application.hpp:16
Represents a 2D tile grid in the scene. References a tileset by its disk path (.tileset file)....
Definition Tilemap.hpp:16