From b694a83655d97bb93318c4523a40c1915f3c05ee Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 1 May 2023 09:12:20 +0200 Subject: work --- include/editor.h | 11 +++++++++++ include/game.h | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 include/editor.h (limited to 'include') diff --git a/include/editor.h b/include/editor.h new file mode 100644 index 0000000..e6fbb0a --- /dev/null +++ b/include/editor.h @@ -0,0 +1,11 @@ +#ifndef INCLUDE_EDITOR +#define INCLUDE_EDITOR + +#ifdef MODE_DEBUG +bool is_editing_map = false; + +void update_editor(platform_window* window); +void draw_editor(platform_window* window); +#endif + +#endif \ No newline at end of file diff --git a/include/game.h b/include/game.h index cc1057d..f2fd0cb 100644 --- a/include/game.h +++ b/include/game.h @@ -11,8 +11,6 @@ #define SERVER_MAX_PLAYERS (10) #define SERVER_PATHFINDING_INTERVAL (0.25f) -bool is_editing_map = false; - typedef enum t_game_state { GAMESTATE_IDLE, GAMESTATE_LOADING_MAP, -- cgit v1.2.3-70-g09d2