From d0fbd68055e3f4a796330cc8acc6c0954b5327ff Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 15:48:53 +0500 Subject: Run clang-format across the project --- game/client/toggles.hh | 70 +++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'game/client/toggles.hh') diff --git a/game/client/toggles.hh b/game/client/toggles.hh index d051a92..8ef780e 100644 --- a/game/client/toggles.hh +++ b/game/client/toggles.hh @@ -1,35 +1,35 @@ -#pragma once - -using toggle_type = unsigned int; -constexpr static toggle_type TOGGLE_WIREFRAME = 0x0000U; // Render things in wireframe mode -constexpr static toggle_type TOGGLE_FULLBRIGHT = 0x0001U; // Render things without lighting -constexpr static toggle_type TOGGLE_CHUNK_AABB = 0x0002U; // Render chunk bounding boxes -constexpr static toggle_type TOGGLE_METRICS_UI = 0x0003U; // Render debug metrics overlay -constexpr static toggle_type TOGGLE_USE_GAMEPAD = 0x0004U; // Use gamepad for player movement -constexpr static toggle_type TOGGLE_PM_FLIGHT = 0x0005U; // Enable flight for player movement -constexpr static std::size_t TOGGLE_COUNT = 0x0006U; - -struct ToggleEnabledEvent final { - toggle_type type; -}; - -struct ToggleDisabledEvent final { - toggle_type type; -}; - -namespace toggles -{ -// The value is true whenever the debug -// toggles manager awaits for a sequenced key -// to be pressed. During this no input should -// be processed by any other gameplay system -extern bool is_sequence_await; -} // namespace toggles - -namespace toggles -{ -void init(void); -void init_late(void); -bool get(toggle_type type); -void set(toggle_type type, bool value); -} // namespace toggles +#pragma once + +using toggle_type = unsigned int; +constexpr static toggle_type TOGGLE_WIREFRAME = 0x0000U; // Render things in wireframe mode +constexpr static toggle_type TOGGLE_FULLBRIGHT = 0x0001U; // Render things without lighting +constexpr static toggle_type TOGGLE_CHUNK_AABB = 0x0002U; // Render chunk bounding boxes +constexpr static toggle_type TOGGLE_METRICS_UI = 0x0003U; // Render debug metrics overlay +constexpr static toggle_type TOGGLE_USE_GAMEPAD = 0x0004U; // Use gamepad for player movement +constexpr static toggle_type TOGGLE_PM_FLIGHT = 0x0005U; // Enable flight for player movement +constexpr static std::size_t TOGGLE_COUNT = 0x0006U; + +struct ToggleEnabledEvent final { + toggle_type type; +}; + +struct ToggleDisabledEvent final { + toggle_type type; +}; + +namespace toggles +{ +// The value is true whenever the debug +// toggles manager awaits for a sequenced key +// to be pressed. During this no input should +// be processed by any other gameplay system +extern bool is_sequence_await; +} // namespace toggles + +namespace toggles +{ +void init(void); +void init_late(void); +bool get(toggle_type type); +void set(toggle_type type, bool value); +} // namespace toggles -- cgit