summaryrefslogtreecommitdiff
path: root/src/game/world/map.h
diff options
context:
space:
mode:
authorkasull <qsullian@gmail.com>2026-03-11 00:24:47 -0400
committerkasull <qsullian@gmail.com>2026-03-11 00:24:47 -0400
commitae6718ec0fb21077b767e189aca26b0fed488775 (patch)
treea4216103d8a9a77edbc470dc4ab094e77ac30261 /src/game/world/map.h
parentbc1ea16c5be92e3bc810b0a30e01fbc9a7f191a9 (diff)
editor object placement and context menus
replace the editor menubar dropdown flow with a reusable context menu component merge sprite/entity placement into a single object tool persist entities, and add undo support for created sprites and entities
Diffstat (limited to 'src/game/world/map.h')
-rw-r--r--src/game/world/map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/world/map.h b/src/game/world/map.h
index 29022db..f3f56f8 100644
--- a/src/game/world/map.h
+++ b/src/game/world/map.h
@@ -68,6 +68,7 @@ struct MAP_SPRITE {
};
struct MAP_ENTITY {
+ VEC3 pos;
U32 classid;
LIST<struct OBJECT_PROP*> props;
};
@@ -82,6 +83,7 @@ struct WORLD_MAP {
LIST<MAP_WALL> walls;
LIST<MAP_POLYGON> polygons;
LIST<MAP_SPRITE> sprites;
+ LIST<MAP_ENTITY> entities;
LIST<SURF_PROPS> props;
MAP_SKYBOX skybox;
F32 w;