From c6b122f517fbde9a400ecb46c4fff44629f7677c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 9 Jun 2022 21:23:15 -0700 Subject: Changeset: 65 Add enum name prefix manipulation support to codegen --- source/30-game/GameObject.hpp | 5 ++++- source/30-game/Ires.hpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'source/30-game') diff --git a/source/30-game/GameObject.hpp b/source/30-game/GameObject.hpp index f975803..56beb80 100644 --- a/source/30-game/GameObject.hpp +++ b/source/30-game/GameObject.hpp @@ -16,6 +16,10 @@ namespace Tags { enum class GameObjectKind { + // clang-format off + BRUSSEL_ENUM(ToString, FromString, RemovePrefix KD_, AddPrefix GameObject, ExcludeHeuristics) + // clang-format on + KD_Generic, KD_Player, KD_SimpleGeometry, @@ -23,7 +27,6 @@ enum class GameObjectKind { KD_LevelWrapper, KD_COUNT, }; -BRUSSEL_ENUM(GameObjectKind, ToString FromString ExcludeHeuristics); } // namespace Tags class GameWorld; diff --git a/source/30-game/Ires.hpp b/source/30-game/Ires.hpp index b6420f3..22018cd 100644 --- a/source/30-game/Ires.hpp +++ b/source/30-game/Ires.hpp @@ -21,6 +21,10 @@ class IresLoadingContext; namespace Tags { enum class IresObjectKind { + // clang-format off + BRUSSEL_ENUM(ToString, FromString, RemovePrefix KD_, AddPrefix Ires, ExcludeHeuristics) + // clang-format on + KD_Texture, KD_Shader, KD_Material, @@ -28,7 +32,6 @@ enum class IresObjectKind { KD_Spritesheet, KD_COUNT, }; -BRUSSEL_ENUM(IresObjectKind, ToString FromString ExcludeHeuristics); } // namespace Tags class IresObject : public RefCounted { -- cgit v1.2.3-70-g09d2