diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-03-12 01:34:36 +0100 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-03-12 01:34:36 +0100 |
| commit | ae6ac413632b427e31a26020a94864669af1ba10 (patch) | |
| tree | a726873ee5ab9a6a96b9d1736e178d23d3fe96c2 /include/map.h | |
| parent | e1a8ca7396d0931bcd10d8f136502f9843e30ff3 (diff) | |
feat(marker): implement map markers
Diffstat (limited to 'include/map.h')
| -rw-r--r-- | include/map.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/map.h b/include/map.h index 6106dc1..d1587fa 100644 --- a/include/map.h +++ b/include/map.h @@ -3,11 +3,18 @@ #include "raylib.h" #include "raytmx.h" +#include "marker.h" + +#define MAX_MARKERS 25 + typedef struct { TmxMap *map; TmxLayer *wallLayer; TmxLayer *groundLayer; TmxLayer *decorLayer; + + Marker markers[MAX_MARKERS]; + int markersCount; } Map; typedef struct Entities Entities; @@ -20,4 +27,6 @@ void DrawMap(Map *map); void DrawPickups(Entities *entities, Map *map); void DrawKeys(Entities *entities, Map *map); +Marker *FindMarker(Map *map, const char *name); + void UnloadMap(Map *map); |
