diff options
Diffstat (limited to 'game/client')
54 files changed, 6 insertions, 222 deletions
diff --git a/game/client/config/gamepad_axis.hh b/game/client/config/gamepad_axis.hh index 86a2990..9392a35 100644 --- a/game/client/config/gamepad_axis.hh +++ b/game/client/config/gamepad_axis.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_GAMEPAD_AXIS_HH -#define CLIENT_GAMEPAD_AXIS_HH 1 #pragma once #include "core/config/ivalue.hh" @@ -38,5 +36,3 @@ private: std::string_view m_name; }; } // namespace config - -#endif // CLIENT_GAMEPAD_AXIS_HH diff --git a/game/client/config/gamepad_button.hh b/game/client/config/gamepad_button.hh index e1d1224..584c353 100644 --- a/game/client/config/gamepad_button.hh +++ b/game/client/config/gamepad_button.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_GAMEPAD_BUTTON_HH -#define CLIENT_GAMEPAD_BUTTON_HH 1 #pragma once #include "core/config/ivalue.hh" @@ -28,5 +26,3 @@ private: std::string_view m_name; }; } // namespace config - -#endif // CLIENT_GAMEPAD_BUTTON_HH diff --git a/game/client/config/keybind.hh b/game/client/config/keybind.hh index 0005fe4..dff6c18 100644 --- a/game/client/config/keybind.hh +++ b/game/client/config/keybind.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_KEYBIND_HH -#define CLIENT_KEYBIND_HH 1 #pragma once #include "core/config/ivalue.hh" @@ -25,5 +23,3 @@ private: int m_glfw_keycode; }; } // namespace config - -#endif // CLIENT_KEYBIND_HH diff --git a/game/client/const.hh b/game/client/const.hh index c53fc1b..461b500 100644 --- a/game/client/const.hh +++ b/game/client/const.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CONST_HH -#define CLIENT_CONST_HH 1 #pragma once #include "shared/const.hh" @@ -23,5 +21,3 @@ static_assert(DEFAULT_HEIGHT >= MIN_HEIGHT); constexpr static float MIN_PITCH = 0.0625f; constexpr static float MAX_PITCH = 10.0f; - -#endif // CLIENT_CONST_HH diff --git a/game/client/entity/camera.hh b/game/client/entity/camera.hh index 2484bfd..67baf72 100644 --- a/game/client/entity/camera.hh +++ b/game/client/entity/camera.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CAMERA_HH -#define CLIENT_CAMERA_HH 1 #pragma once #include "shared/types.hh" @@ -31,5 +29,3 @@ namespace entity::camera void init(void); void update(void); } // namespace entity::camera - -#endif // CLIENT_CAMERA_HH diff --git a/game/client/entity/factory.hh b/game/client/entity/factory.hh index b9d3f45..63e6e44 100644 --- a/game/client/entity/factory.hh +++ b/game/client/entity/factory.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_FACTORY_HH -#define CLIENT_FACTORY_HH 1 #pragma once namespace world @@ -11,5 +9,3 @@ namespace entity::client { void create_player(world::Dimension* dimension, entt::entity entity); } // namespace entity::client - -#endif // CLIENT_FACTORY_HH diff --git a/game/client/entity/interpolation.hh b/game/client/entity/interpolation.hh index 74a2b7e..6935fe8 100644 --- a/game/client/entity/interpolation.hh +++ b/game/client/entity/interpolation.hh @@ -1,10 +1,6 @@ -#ifndef CLIENT_INTERPOLATION_HH -#define CLIENT_INTERPOLATION_HH 1 #pragma once namespace entity::interpolation { void update(void); } // namespace entity::interpolation - -#endif // CLIENT_INTERPOLATION_HH diff --git a/game/client/entity/listener.hh b/game/client/entity/listener.hh index fd76816..594cde1 100644 --- a/game/client/entity/listener.hh +++ b/game/client/entity/listener.hh @@ -1,10 +1,6 @@ -#ifndef CLIENT_LISTENER_HH -#define CLIENT_LISTENER_HH 1 #pragma once namespace entity::listener { void update(void); } // namespace entity::listener - -#endif // CLIENT_LISTENER_HH diff --git a/game/client/entity/player_look.hh b/game/client/entity/player_look.hh index 6532b8f..0ae18db 100644 --- a/game/client/entity/player_look.hh +++ b/game/client/entity/player_look.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PLAYER_LOOK_HH -#define CLIENT_PLAYER_LOOK_HH 1 #pragma once namespace entity::player_look @@ -7,5 +5,3 @@ namespace entity::player_look void init(void); void update_late(void); } // namespace entity::player_look - -#endif // CLIENT_PLAYER_LOOK_HH diff --git a/game/client/entity/player_move.hh b/game/client/entity/player_move.hh index aa221f3..8c033cc 100644 --- a/game/client/entity/player_move.hh +++ b/game/client/entity/player_move.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PLAYER_MOVE_HH -#define CLIENT_PLAYER_MOVE_HH 1 #pragma once constexpr static float PMOVE_MAX_SPEED_AIR = 16.0f; @@ -15,5 +13,3 @@ void init(void); void fixed_update(void); void update_late(void); } // namespace entity::player_move - -#endif // CLIENT_PLAYER_MOVE_HH diff --git a/game/client/entity/sound_emitter.hh b/game/client/entity/sound_emitter.hh index d5834d1..72a3f74 100644 --- a/game/client/entity/sound_emitter.hh +++ b/game/client/entity/sound_emitter.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SOUND_EMITTER_HH -#define CLIENT_SOUND_EMITTER_HH 1 #pragma once #include "core/resource/resource.hh" @@ -20,5 +18,3 @@ public: static void update(void); }; } // namespace entity - -#endif // CLIENT_SOUND_EMITTER_HH diff --git a/game/client/experiments.hh b/game/client/experiments.hh index a2ce66a..ff2cbad 100644 --- a/game/client/experiments.hh +++ b/game/client/experiments.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_EXPERIMENTS_HH -#define CLIENT_EXPERIMENTS_HH 1 #pragma once namespace experiments @@ -16,5 +14,3 @@ namespace experiments void attack(void); void interact(void); } // namespace experiments - -#endif // CLIENT_EXPERIMENTS_HH diff --git a/game/client/game.hh b/game/client/game.hh index cc136df..395acc9 100644 --- a/game/client/game.hh +++ b/game/client/game.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_GAME_HH -#define CLIENT_GAME_HH 1 #pragma once namespace config @@ -35,5 +33,3 @@ void update_late(void); void render(void); void layout(void); } // namespace client_game - -#endif // CLIENT_GAME_HH diff --git a/game/client/globals.hh b/game/client/globals.hh index 69ce29c..ba57a9e 100644 --- a/game/client/globals.hh +++ b/game/client/globals.hh @@ -1,5 +1,3 @@ -#ifndef CLIENTOBALS_HH -#define CLIENTOBALS_HH 1 #pragma once #include "shared/globals.hh" @@ -71,5 +69,3 @@ extern unsigned int gui_screen; extern ALCdevice* sound_dev; extern ALCcontext* sound_ctx; } // namespace globals - -#endif // CLIENTOBALS_HH diff --git a/game/client/gui/background.hh b/game/client/gui/background.hh index 1974c34..5c72a3f 100644 --- a/game/client/gui/background.hh +++ b/game/client/gui/background.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_BACKGROUND_HH -#define CLIENT_BACKGROUND_HH 1 #pragma once namespace gui::background @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void layout(void); } // namespace gui::background - -#endif // CLIENT_BACKGROUND_HH diff --git a/game/client/gui/bother.hh b/game/client/gui/bother.hh index f555d74..c83294c 100644 --- a/game/client/gui/bother.hh +++ b/game/client/gui/bother.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_BOTHER_HH -#define CLIENT_BOTHER_HH 1 #pragma once namespace gui @@ -22,5 +20,3 @@ void update_late(void); void ping(unsigned int identity, std::string_view host, std::uint16_t port); void cancel(unsigned int identity); } // namespace gui::bother - -#endif // CLIENT_BOTHER_HH diff --git a/game/client/gui/chat.hh b/game/client/gui/chat.hh index b56681e..6a3ea33 100644 --- a/game/client/gui/chat.hh +++ b/game/client/gui/chat.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CHAT_HH -#define CLIENT_CHAT_HH 1 #pragma once namespace gui::client_chat @@ -17,5 +15,3 @@ void clear(void); void refresh_timings(void); void print(const std::string& string); } // namespace gui::client_chat - -#endif // CLIENT_CHAT_HH diff --git a/game/client/gui/crosshair.hh b/game/client/gui/crosshair.hh index d29a661..589727e 100644 --- a/game/client/gui/crosshair.hh +++ b/game/client/gui/crosshair.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CROSSHAIR_HH -#define CLIENT_CROSSHAIR_HH 1 #pragma once namespace gui::crosshair @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void layout(void); } // namespace gui::crosshair - -#endif // CLIENT_CROSSHAIR_HH diff --git a/game/client/gui/direct_connection.hh b/game/client/gui/direct_connection.hh index 7331843..aa02d7c 100644 --- a/game/client/gui/direct_connection.hh +++ b/game/client/gui/direct_connection.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_DIRECT_CONNECTION_HH -#define CLIENT_DIRECT_CONNECTION_HH 1 #pragma once namespace gui::direct_connection @@ -7,5 +5,3 @@ namespace gui::direct_connection void init(void); void layout(void); } // namespace gui::direct_connection - -#endif // CLIENT_DIRECT_CONNECTION_HH diff --git a/game/client/gui/gui_screen.hh b/game/client/gui/gui_screen.hh index b36e6b2..2eae310 100644 --- a/game/client/gui/gui_screen.hh +++ b/game/client/gui/gui_screen.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_GUI_SCREEN_HH -#define CLIENT_GUI_SCREEN_HH 1 #pragma once constexpr static unsigned int GUI_SCREEN_NONE = 0x0000U; @@ -10,5 +8,3 @@ constexpr static unsigned int GUI_PROGRESS_BAR = 0x0004U; constexpr static unsigned int GUI_MESSAGE_BOX = 0x0005U; constexpr static unsigned int GUI_CHAT = 0x0006U; constexpr static unsigned int GUI_DIRECT_CONNECTION = 0x0007U; - -#endif // CLIENT_GUI_SCREEN_HH diff --git a/game/client/gui/hotbar.hh b/game/client/gui/hotbar.hh index 4712ee5..85d75aa 100644 --- a/game/client/gui/hotbar.hh +++ b/game/client/gui/hotbar.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_HOTBAR_HH -#define CLIENT_HOTBAR_HH 1 #pragma once #include "shared/types.hh" @@ -27,5 +25,3 @@ namespace gui::hotbar void next_slot(void); void prev_slot(void); } // namespace gui::hotbar - -#endif // CLIENT_HOTBAR_HH diff --git a/game/client/gui/imdraw_ext.hh b/game/client/gui/imdraw_ext.hh index 664b702..a7e1503 100644 --- a/game/client/gui/imdraw_ext.hh +++ b/game/client/gui/imdraw_ext.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_IMDRAW_EXT_HH -#define CLIENT_IMDRAW_EXT_HH 1 #pragma once namespace gui::imdraw_ext @@ -17,5 +15,3 @@ void text_shadow_w(const std::string& text, const ImVec2& position, ImU32 text_c void text_shadow_w(const std::string& text, const ImVec2& position, ImU32 text_color, ImU32 shadow_color, ImFont* font, ImDrawList* draw_list, float font_size, float wrap_width); } // namespace gui::imdraw_ext - -#endif // CLIENT_IMDRAW_EXT_HH diff --git a/game/client/gui/language.hh b/game/client/gui/language.hh index 37cc790..90132d7 100644 --- a/game/client/gui/language.hh +++ b/game/client/gui/language.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_LANGUAGE_HH -#define CLIENT_LANGUAGE_HH 1 #pragma once namespace gui @@ -42,5 +40,3 @@ namespace gui::language std::string_view resolve(std::string_view key); std::string resolve_gui(std::string_view key); } // namespace gui::language - -#endif // CLIENT_LANGUAGE_HH diff --git a/game/client/gui/main_menu.hh b/game/client/gui/main_menu.hh index c93e284..205f078 100644 --- a/game/client/gui/main_menu.hh +++ b/game/client/gui/main_menu.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_MAIN_MENU_HH -#define CLIENT_MAIN_MENU_HH 1 #pragma once namespace gui::main_menu @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void layout(void); } // namespace gui::main_menu - -#endif // CLIENT_MAIN_MENU_HH diff --git a/game/client/gui/message_box.hh b/game/client/gui/message_box.hh index a906744..74a6fbf 100644 --- a/game/client/gui/message_box.hh +++ b/game/client/gui/message_box.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_MESSAGE_BOX_HH -#define CLIENT_MESSAGE_BOX_HH 1 #pragma once namespace gui @@ -20,5 +18,3 @@ void set_title(std::string_view title); void set_subtitle(std::string_view subtitle); void add_button(std::string_view text, const message_box_action& action); } // namespace gui::message_box - -#endif // CLIENT_MESSAGE_BOX_HH diff --git a/game/client/gui/metrics.hh b/game/client/gui/metrics.hh index 57e1108..4898332 100644 --- a/game/client/gui/metrics.hh +++ b/game/client/gui/metrics.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_METRICS_HH -#define CLIENT_METRICS_HH 1 #pragma once namespace gui::metrics @@ -7,5 +5,3 @@ namespace gui::metrics void init(void); void layout(void); } // namespace gui::metrics - -#endif // CLIENT_METRICS_HH diff --git a/game/client/gui/play_menu.hh b/game/client/gui/play_menu.hh index f63d27e..1b1f003 100644 --- a/game/client/gui/play_menu.hh +++ b/game/client/gui/play_menu.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PLAY_MENU_HH -#define CLIENT_PLAY_MENU_HH 1 #pragma once namespace gui::play_menu @@ -9,5 +7,3 @@ void shutdown(void); void layout(void); void update_late(void); } // namespace gui::play_menu - -#endif // CLIENT_PLAY_MENU_HH diff --git a/game/client/gui/progress_bar.hh b/game/client/gui/progress_bar.hh index 79fdcb5..7a0581d 100644 --- a/game/client/gui/progress_bar.hh +++ b/game/client/gui/progress_bar.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PROGRESS_BAR_HH -#define CLIENT_PROGRESS_BAR_HH 1 #pragma once namespace gui @@ -19,5 +17,3 @@ void reset(void); void set_title(std::string_view title); void set_button(std::string_view text, const progress_bar_action& action); } // namespace gui::progress_bar - -#endif // CLIENT_PROGRESS_BAR_HH diff --git a/game/client/gui/scoreboard.hh b/game/client/gui/scoreboard.hh index af77ae2..320e185 100644 --- a/game/client/gui/scoreboard.hh +++ b/game/client/gui/scoreboard.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SCOREBOARD_HH -#define CLIENT_SCOREBOARD_HH 1 #pragma once namespace gui::scoreboard @@ -7,5 +5,3 @@ namespace gui::scoreboard void init(void); void layout(void); } // namespace gui::scoreboard - -#endif // CLIENT_SCOREBOARD_HH diff --git a/game/client/gui/settings.hh b/game/client/gui/settings.hh index d807bc4..efb8ca4 100644 --- a/game/client/gui/settings.hh +++ b/game/client/gui/settings.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SETTINGS_HH -#define CLIENT_SETTINGS_HH 1 #pragma once namespace config @@ -55,8 +53,8 @@ void add_checkbox(int priority, config::Boolean& value, settings_location locati namespace settings { void add_input(int priority, config::Int& value, settings_location location, std::string_view name, bool tooltip); -void add_input( - int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, std::string_view fmt = "%.3f"); +void add_input(int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, + std::string_view fmt = "%.3f"); void add_input(int priority, config::Unsigned& value, settings_location location, std::string_view name, bool tooltip); void add_input(int priority, config::String& value, settings_location location, std::string_view name, bool tooltip, bool allow_whitespace); } // namespace settings @@ -64,8 +62,8 @@ void add_input(int priority, config::String& value, settings_location location, namespace settings { void add_slider(int priority, config::Int& value, settings_location location, std::string_view name, bool tooltip); -void add_slider( - int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, std::string_view format = "%.3f"); +void add_slider(int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, + std::string_view format = "%.3f"); void add_slider(int priority, config::Unsigned& value, settings_location location, std::string_view name, bool tooltip); } // namespace settings @@ -90,5 +88,3 @@ namespace settings { void add_language_select(int priority, settings_location location, std::string_view name); } // namespace settings - -#endif // CLIENT_SETTINGS_HH diff --git a/game/client/gui/splash.hh b/game/client/gui/splash.hh index 7a032ad..3ce63e4 100644 --- a/game/client/gui/splash.hh +++ b/game/client/gui/splash.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SPLASH_HH -#define CLIENT_SPLASH_HH 1 #pragma once namespace gui::client_splash @@ -8,5 +6,3 @@ void init(void); void init_late(void); void render(void); } // namespace gui::client_splash - -#endif // CLIENT_SPLASH_HH diff --git a/game/client/gui/status_lines.hh b/game/client/gui/status_lines.hh index 907cdfc..c86e248 100644 --- a/game/client/gui/status_lines.hh +++ b/game/client/gui/status_lines.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_STATUS_LINES_HH -#define CLIENT_STATUS_LINES_HH 1 #pragma once namespace gui @@ -21,5 +19,3 @@ namespace gui::status_lines void set(unsigned int line, const std::string& text, const ImVec4& color, float fadeout); void unset(unsigned int line); } // namespace gui::status_lines - -#endif // CLIENT_STATUS_LINES_HH diff --git a/game/client/gui/window_title.hh b/game/client/gui/window_title.hh index a6fe4ec..af1ab7c 100644 --- a/game/client/gui/window_title.hh +++ b/game/client/gui/window_title.hh @@ -1,10 +1,6 @@ -#ifndef CLIENT_WINDOW_TITLE_HH -#define CLIENT_WINDOW_TITLE_HH 1 #pragma once namespace gui::window_title { void update(void); } // namespace gui::window_title - -#endif // CLIENT_WINDOW_TITLE_HH diff --git a/game/client/io/gamepad.hh b/game/client/io/gamepad.hh index 4200037..9c56894 100644 --- a/game/client/io/gamepad.hh +++ b/game/client/io/gamepad.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_GAMEPAD_HH -#define CLIENT_GAMEPAD_HH 1 #pragma once namespace io @@ -50,5 +48,3 @@ struct GamepadButtonEvent final { int button; }; } // namespace io - -#endif // CLIENT_GAMEPAD_HH diff --git a/game/client/pch.hh b/game/client/pch.hh index 98c5e52..3832081 100644 --- a/game/client/pch.hh +++ b/game/client/pch.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PCH_HH -#define CLIENT_PCH_HH 1 #pragma once #include <shared/pch.hh> @@ -28,5 +26,3 @@ #if defined(__unix__) #include <dlfcn.h> #endif - -#endif // CLIENT_PCH_HH diff --git a/game/client/program.hh b/game/client/program.hh index 4e796fa..af78513 100644 --- a/game/client/program.hh +++ b/game/client/program.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PROGRAM_HH -#define CLIENT_PROGRAM_HH 1 #pragma once struct GL_VariedMacro final { @@ -34,5 +32,3 @@ public: bool needs_update; GLuint handle; }; - -#endif // CLIENT_PROGRAM_HH diff --git a/game/client/receive.hh b/game/client/receive.hh index 1b793b0..d675392 100644 --- a/game/client/receive.hh +++ b/game/client/receive.hh @@ -1,10 +1,6 @@ -#ifndef CLIENT_RECEIVE_HH -#define CLIENT_RECEIVE_HH 1 #pragma once namespace client_receive { void init(void); } // namespace client_receive - -#endif // CLIENT_RECEIVE_HH diff --git a/game/client/resource/sound_effect.hh b/game/client/resource/sound_effect.hh index 8fa3da4..f2db33b 100644 --- a/game/client/resource/sound_effect.hh +++ b/game/client/resource/sound_effect.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SOUND_EFFECT_HH -#define CLIENT_SOUND_EFFECT_HH 1 #pragma once struct SoundEffect final { @@ -8,5 +6,3 @@ struct SoundEffect final { std::string name; ALuint buffer; }; - -#endif // CLIENT_SOUND_EFFECT_HH diff --git a/game/client/resource/texture_gui.hh b/game/client/resource/texture_gui.hh index 988c642..2d42c83 100644 --- a/game/client/resource/texture_gui.hh +++ b/game/client/resource/texture_gui.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_TEXTURE2D_HH -#define CLIENT_TEXTURE2D_HH 1 #pragma once constexpr static unsigned int TEXTURE_GUI_LOAD_CLAMP_S = 0x0001; @@ -15,5 +13,3 @@ struct TextureGUI final { ImTextureID handle; glm::ivec2 size; }; - -#endif // CLIENT_TEXTURE2D_HH diff --git a/game/client/screenshot.hh b/game/client/screenshot.hh index 7cb8cd5..fecbd2f 100644 --- a/game/client/screenshot.hh +++ b/game/client/screenshot.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SCREENSHOT_HH -#define CLIENT_SCREENSHOT_HH 1 #pragma once namespace screenshot @@ -7,5 +5,3 @@ namespace screenshot void init(void); void take(void); } // namespace screenshot - -#endif // CLIENT_SCREENSHOT_HH diff --git a/game/client/session.hh b/game/client/session.hh index 8384a49..f61d62d 100644 --- a/game/client/session.hh +++ b/game/client/session.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SESSION_HH -#define CLIENT_SESSION_HH 1 #pragma once namespace session @@ -27,5 +25,3 @@ namespace session { bool is_ingame(void); } // namespace session - -#endif // CLIENT_SESSION_HH diff --git a/game/client/sound/sound.hh b/game/client/sound/sound.hh index 877c64a..d96d0c4 100644 --- a/game/client/sound/sound.hh +++ b/game/client/sound/sound.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SOUND_HH -#define CLIENT_SOUND_HH 1 #pragma once #include "core/resource/resource.hh" @@ -43,5 +41,3 @@ void play_entity(entt::entity entity, resource_ptr<SoundEffect> sound, bool loop void play_player(resource_ptr<SoundEffect> sound, bool looping, float pitch); void play_ui(resource_ptr<SoundEffect> sound, bool looping, float pitch); } // namespace sound - -#endif // CLIENT_SOUND_HH diff --git a/game/client/toggles.hh b/game/client/toggles.hh index 86ef7ea..d051a92 100644 --- a/game/client/toggles.hh +++ b/game/client/toggles.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_TOGGLES_HH -#define CLIENT_TOGGLES_HH 1 #pragma once using toggle_type = unsigned int; @@ -35,5 +33,3 @@ void init_late(void); bool get(toggle_type type); void set(toggle_type type, bool value); } // namespace toggles - -#endif // CLIENT_TOGGLES_HH diff --git a/game/client/world/chunk_mesher.hh b/game/client/world/chunk_mesher.hh index 14df019..cb0c7c5 100644 --- a/game/client/world/chunk_mesher.hh +++ b/game/client/world/chunk_mesher.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CHUNK_MESHER_HH -#define CLIENT_CHUNK_MESHER_HH 1 #pragma once #include "client/world/chunk_vbo.hh" @@ -18,5 +16,3 @@ void init(void); void shutdown(void); void update(void); } // namespace world::chunk_mesher - -#endif // CLIENT_CHUNK_MESHER_HH diff --git a/game/client/world/chunk_quad.hh b/game/client/world/chunk_quad.hh index 9b3ca47..d160b7e 100644 --- a/game/client/world/chunk_quad.hh +++ b/game/client/world/chunk_quad.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CHUNK_QUAD_HH -#define CLIENT_CHUNK_QUAD_HH 1 #pragma once #include "core/math/constexpr.hh" @@ -15,8 +13,8 @@ using ChunkQuad = std::array<std::uint32_t, 2>; namespace world { -constexpr inline static ChunkQuad make_chunk_quad( - const glm::fvec3& position, const glm::fvec2& size, voxel_facing facing, std::size_t texture, std::size_t frames) +constexpr inline static ChunkQuad make_chunk_quad(const glm::fvec3& position, const glm::fvec2& size, voxel_facing facing, + std::size_t texture, std::size_t frames) { ChunkQuad result = {}; result[0] = 0x00000000; @@ -41,5 +39,3 @@ constexpr inline static ChunkQuad make_chunk_quad( return result; } } // namespace world - -#endif // CLIENT_CHUNK_QUAD_HH diff --git a/game/client/world/chunk_renderer.hh b/game/client/world/chunk_renderer.hh index fdc5eea..2b73225 100644 --- a/game/client/world/chunk_renderer.hh +++ b/game/client/world/chunk_renderer.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CHUNK_RENDERER_HH -#define CLIENT_CHUNK_RENDERER_HH 1 #pragma once namespace world::chunk_renderer @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void render(void); } // namespace world::chunk_renderer - -#endif // CLIENT_CHUNK_RENDERER_HH diff --git a/game/client/world/chunk_vbo.hh b/game/client/world/chunk_vbo.hh index 586c313..175b34f 100644 --- a/game/client/world/chunk_vbo.hh +++ b/game/client/world/chunk_vbo.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CHUNK_VBO_HH -#define CLIENT_CHUNK_VBO_HH 1 #pragma once namespace world @@ -22,5 +20,3 @@ public: } }; } // namespace world - -#endif // CLIENT_CHUNK_VBO_HH diff --git a/game/client/world/chunk_visibility.hh b/game/client/world/chunk_visibility.hh index a57baa1..8d1f3cd 100644 --- a/game/client/world/chunk_visibility.hh +++ b/game/client/world/chunk_visibility.hh @@ -1,10 +1,6 @@ -#ifndef CLIENT_CHUNK_VISIBILITY_HH -#define CLIENT_CHUNK_VISIBILITY_HH 1 #pragma once namespace world::chunk_visibility { void update_late(void); } // namespace world::chunk_visibility - -#endif // CLIENT_CHUNK_VISIBILITY_HH diff --git a/game/client/world/outline.hh b/game/client/world/outline.hh index 5cef7ed..2456a32 100644 --- a/game/client/world/outline.hh +++ b/game/client/world/outline.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_OUTLINE_HH -#define CLIENT_OUTLINE_HH 1 #pragma once #include "shared/types.hh" @@ -16,5 +14,3 @@ namespace world::outline void cube(const chunk_pos& cpos, const glm::fvec3& fpos, const glm::fvec3& size, float thickness, const glm::fvec4& color); void line(const chunk_pos& cpos, const glm::fvec3& fpos, const glm::fvec3& size, float thickness, const glm::fvec4& color); } // namespace world::outline - -#endif // CLIENT_OUTLINE_HH diff --git a/game/client/world/player_target.hh b/game/client/world/player_target.hh index 33d90fb..f137a1b 100644 --- a/game/client/world/player_target.hh +++ b/game/client/world/player_target.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PLAYER_TARGET_HH -#define CLIENT_PLAYER_TARGET_HH 1 #pragma once #include "shared/world/voxel_registry.hh" @@ -18,5 +16,3 @@ void init(void); void update(void); void render(void); } // namespace world::player_target - -#endif // CLIENT_PLAYER_TARGET_HH diff --git a/game/client/world/skybox.hh b/game/client/world/skybox.hh index 6dd82f9..40113cd 100644 --- a/game/client/world/skybox.hh +++ b/game/client/world/skybox.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SKYBOX_HH -#define CLIENT_SKYBOX_HH 1 #pragma once namespace world::skybox @@ -11,5 +9,3 @@ namespace world::skybox { void init(void); } // namespace world::skybox - -#endif // CLIENT_SKYBOX_HH diff --git a/game/client/world/voxel_anims.hh b/game/client/world/voxel_anims.hh index 5e9c56f..0d8a0d0 100644 --- a/game/client/world/voxel_anims.hh +++ b/game/client/world/voxel_anims.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_VOXEL_ANIMS_HH -#define CLIENT_VOXEL_ANIMS_HH 1 #pragma once namespace world::voxel_anims @@ -13,5 +11,3 @@ namespace world::voxel_anims void init(void); void update(void); } // namespace world::voxel_anims - -#endif // CLIENT_VOXEL_ANIMS_HH diff --git a/game/client/world/voxel_atlas.hh b/game/client/world/voxel_atlas.hh index f94c6bd..70e8a1e 100644 --- a/game/client/world/voxel_atlas.hh +++ b/game/client/world/voxel_atlas.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_VOXEL_ATLAS_HH -#define CLIENT_VOXEL_ATLAS_HH 1 #pragma once namespace world @@ -28,5 +26,3 @@ namespace world::voxel_atlas AtlasStrip* find_or_load(const std::vector<std::string>& paths); AtlasStrip* find(const std::vector<std::string>& paths); } // namespace world::voxel_atlas - -#endif // CLIENT_VOXEL_ATLAS_HH diff --git a/game/client/world/voxel_sounds.hh b/game/client/world/voxel_sounds.hh index d6f860f..b09b475 100644 --- a/game/client/world/voxel_sounds.hh +++ b/game/client/world/voxel_sounds.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_VOXEL_SOUNDS_HH -#define CLIENT_VOXEL_SOUNDS_HH 1 #pragma once #include "core/resource/resource.hh" @@ -19,5 +17,3 @@ namespace world::voxel_sounds resource_ptr<SoundEffect> get_footsteps(voxel_surface surface); resource_ptr<SoundEffect> get_placebreak(voxel_surface surface); } // namespace world::voxel_sounds - -#endif // CLIENT_VOXEL_SOUNDS_HH |
