TazGraph Project v0.1.0
|
Architecture and workflow for loading maps and paths. More...
Classes | |
class | IMapParser |
Abstract base class for all map parsers. More... | |
Functions | |
void | Map::AddDefaultNode (Entity &node, glm::vec3 mPosition) |
Adds a default node to the ECS. | |
Architecture and workflow for loading maps and paths.
The map loading system separates file parsing from entity creation. Each parser derives from IMapParser and interacts with Map.cpp via callbacks.
void Map::AddDefaultNode | ( | Entity & | node, |
glm::vec3 | mPosition | ||
) |
Adds a default node to the ECS.
Used as a callback by parsers to attach TransformComponent, Rectangle_w_Color, and RectangleFlashAnimatorComponent.