|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Represents one tile slot in a tileset. Saved to disk as a small <name>.tile JSON file. More...
#include <TilesetAsset.hpp>
Public Attributes | |
| int | id = -1 |
| Slot index in the parent tileset (== index in TilesetAsset::tiles). | |
| std::string | name |
| Display name shown in the palette. | |
| std::string | texturePath |
| Project-relative path to the tile's texture image. | |
| bool | isSolid = false |
| True = solid collider spawned for cells containing this tile. | |
| int | gridX = 0 |
| Column on the infinite palette grid (can be negative). | |
| int | gridY = 0 |
| Row on the infinite palette grid (can be negative). | |
| glm::vec4 | atlasUV { 0.f, 0.f, 1.f, 1.f } |
| Normalised UV rect in the runtime atlas: (u0, v0, u1, v1). | |
Represents one tile slot in a tileset. Saved to disk as a small <name>.tile JSON file.
| glm::vec4 Engine::TileAsset::atlasUV { 0.f, 0.f, 1.f, 1.f } |
Normalised UV rect in the runtime atlas: (u0, v0, u1, v1).
| int Engine::TileAsset::gridX = 0 |
Column on the infinite palette grid (can be negative).
| int Engine::TileAsset::gridY = 0 |
Row on the infinite palette grid (can be negative).
| int Engine::TileAsset::id = -1 |
Slot index in the parent tileset (== index in TilesetAsset::tiles).
| bool Engine::TileAsset::isSolid = false |
True = solid collider spawned for cells containing this tile.
| std::string Engine::TileAsset::name |
Display name shown in the palette.
| std::string Engine::TileAsset::texturePath |
Project-relative path to the tile's texture image.