summaryrefslogtreecommitdiff
path: root/src/editor/editor.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-08-11 19:10:04 +0200
committeraura <nw@moneybot.cc>2026-08-11 19:10:04 +0200
commit1aa17de9188790f049c0edc4281597cb4e535627 (patch)
tree23b1ab21179165bfca625da2e6f1e90803107ef9 /src/editor/editor.h
parente540910745aad31378452eec25aacfb3f346191a (diff)
wip on shape tool
Diffstat (limited to 'src/editor/editor.h')
-rw-r--r--src/editor/editor.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/editor/editor.h b/src/editor/editor.h
index 3d27951..8838d8f 100644
--- a/src/editor/editor.h
+++ b/src/editor/editor.h
@@ -19,7 +19,13 @@ enum EditorTools_t {
enum EditorWallShape_t {
EDITOR_WALLSHAPE_LINE = 0,
- EDITOR_WALLSHAPE_POLYGON = 1
+ EDITOR_WALLSHAPE_POLYGON = 1,
+ EDITOR_WALLSHAPE_PATH = 2
+};
+
+enum EditorPolyShape_t {
+ EDITOR_POLYSHAPE_DRAG = 0,
+ EDITOR_POLYSHAPE_PATH = 1
};
enum EditorSelectType_t {
@@ -43,8 +49,6 @@ enum EditorActionType_t {
EDITOR_UNDO_EDITPROPS = 1 << 5,
EDITOR_UNDO_CREATE_MAPPROP = 1 << 6,
-
-
EDITOR_UNDO_CREATE_EOBJ = EDITOR_UNDO_CREATE_WALLS | EDITOR_UNDO_CREATE_POLY | EDITOR_UNDO_CREATE_SPRITES | EDITOR_UNDO_CREATE_ENTITIES,
};
@@ -91,6 +95,7 @@ struct GAME_EDITOR_TOOL {
/* shapes */
I32 wallshape;
+ I32 polyshape;
F32 polysides;
F32 wallheight;
F32 placementheight;