From bff157bbb4c97a745de5f46c4ee062143d71afdb Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 30 Jun 2024 16:12:53 +0200 Subject: [PATCH] Server: add AI Hull enumeration All AI hulls of the game --- src/game/CMakeLists.txt | 1 + src/game/server/ai_hull.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/game/server/ai_hull.h diff --git a/src/game/CMakeLists.txt b/src/game/CMakeLists.txt index 68105c4f..74a8f912 100644 --- a/src/game/CMakeLists.txt +++ b/src/game/CMakeLists.txt @@ -71,6 +71,7 @@ add_sources( SOURCE_GROUP "AI" "server/ai_networkmanager.cpp" "server/ai_networkmanager.h" "server/ai_node.h" + "server/ai_hull.h" "server/ai_utility.cpp" "server/ai_utility.h" "server/detour_impl.h" diff --git a/src/game/server/ai_hull.h b/src/game/server/ai_hull.h new file mode 100644 index 00000000..e3964db7 --- /dev/null +++ b/src/game/server/ai_hull.h @@ -0,0 +1,27 @@ +//=============================================================================// +// +// Purpose: +// +//=============================================================================// +#ifndef AI_HULL_H +#define AI_HULL_H + +//========================================================= +// Link Properties. These hulls must correspond to the hulls +// in AI_Hull.cpp! +//========================================================= +enum Hull_t +{ + HULL_HUMAN, + HULL_MEDIUM, + HULL_FLYING_VEHICLE, + HULL_SMALL, + HULL_TITAN, + HULL_GOLIATH, + HULL_PROWLER, + //-------------------------------------------- + NUM_HULLS, // Confirmed, see [r5apex_ds + CB2765] + HULL_NONE = -1 // No Hull (appears after num hulls as we don't want to count it) +}; + +#endif // AI_HULL_H