aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game')
-rw-r--r--src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp2
-rw-r--r--src/server/game/Maps/SpawnData.h7
-rw-r--r--src/server/game/Maps/enuminfo_SpawnData.cpp56
-rw-r--r--src/server/game/Miscellaneous/Language.h7
4 files changed, 64 insertions, 8 deletions
diff --git a/src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp b/src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp
index e56cc94ac5c..2fffd3d2fbb 100644
--- a/src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp
+++ b/src/server/game/Entities/Unit/enuminfo_UnitDefines.cpp
@@ -64,7 +64,7 @@ TC_API_EXPORT EnumText EnumUtils<UnitFlags>::ToString(UnitFlags value)
case UNIT_FLAG_UNK_28: return { "UNIT_FLAG_UNK_28", "UNIT_FLAG_UNK_28", "" };
case UNIT_FLAG_UNK_29: return { "UNIT_FLAG_UNK_29", "UNIT_FLAG_UNK_29", "used in Feing Death spell" };
case UNIT_FLAG_SHEATHE: return { "UNIT_FLAG_SHEATHE", "UNIT_FLAG_SHEATHE", "" };
- case UNIT_FLAG_IMMUNE: return { "UNIT_FLAG_IMMUNE", "UNIT_FLAG_IMMUNE", "is affected by a damage immunity aura" };
+ case UNIT_FLAG_IMMUNE: return { "UNIT_FLAG_IMMUNE", "UNIT_FLAG_IMMUNE", "Immune to damage" };
default: throw std::out_of_range("value");
}
}
diff --git a/src/server/game/Maps/SpawnData.h b/src/server/game/Maps/SpawnData.h
index d11ed7d13db..53a7797093e 100644
--- a/src/server/game/Maps/SpawnData.h
+++ b/src/server/game/Maps/SpawnData.h
@@ -20,12 +20,13 @@
#include "Position.h"
+// EnumUtils: DESCRIBE THIS
enum SpawnObjectType
{
- SPAWN_TYPE_CREATURE = 0,
- SPAWN_TYPE_GAMEOBJECT = 1,
+ SPAWN_TYPE_CREATURE = 0, // TITLE Creature
+ SPAWN_TYPE_GAMEOBJECT = 1, // TITLE Gameobject
- SPAWN_TYPE_MAX
+ SPAWN_TYPE_MAX // SKIP
};
enum SpawnObjectTypeMask
diff --git a/src/server/game/Maps/enuminfo_SpawnData.cpp b/src/server/game/Maps/enuminfo_SpawnData.cpp
new file mode 100644
index 00000000000..55487a8d50b
--- /dev/null
+++ b/src/server/game/Maps/enuminfo_SpawnData.cpp
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "SpawnData.h"
+#include "Define.h"
+#include "SmartEnum.h"
+#include <stdexcept>
+
+namespace Trinity
+{
+namespace Impl
+{
+
+/*******************************************************************\
+|* data for enum 'SpawnObjectType' in 'SpawnData.h' auto-generated *|
+\*******************************************************************/
+template <>
+TC_API_EXPORT EnumText EnumUtils<SpawnObjectType>::ToString(SpawnObjectType value)
+{
+ switch (value)
+ {
+ case SPAWN_TYPE_CREATURE: return { "SPAWN_TYPE_CREATURE", "Creature", "" };
+ case SPAWN_TYPE_GAMEOBJECT: return { "SPAWN_TYPE_GAMEOBJECT", "Gameobject", "" };
+ default: throw std::out_of_range("value");
+ }
+}
+
+template <>
+TC_API_EXPORT size_t EnumUtils<SpawnObjectType>::Count() { return 2; }
+
+template <>
+TC_API_EXPORT SpawnObjectType EnumUtils<SpawnObjectType>::FromIndex(size_t index)
+{
+ switch (index)
+ {
+ case 0: return SPAWN_TYPE_CREATURE;
+ case 1: return SPAWN_TYPE_GAMEOBJECT;
+ default: throw std::out_of_range("index");
+ }
+}
+}
+}
diff --git a/src/server/game/Miscellaneous/Language.h b/src/server/game/Miscellaneous/Language.h
index 9ab8b0bc962..60449ae8dd8 100644
--- a/src/server/game/Miscellaneous/Language.h
+++ b/src/server/game/Miscellaneous/Language.h
@@ -1047,12 +1047,11 @@ enum TrinityStrings
LANG_LIST_RESPAWNS_ZONE = 5078,
LANG_LIST_RESPAWNS_LISTHEADER = 5079,
LANG_LIST_RESPAWNS_OVERDUE = 5080,
- LANG_LIST_RESPAWNS_CREATURES = 5081,
- LANG_LIST_RESPAWNS_GAMEOBJECTS = 5082,
+ // unused 5081
+ // unused 5082
LANG_OBJECTINFO_AITYPE = 5083,
- LANG_LIST_RESPAWNS_POOLS = 5084,
- // Room for more Trinity strings 5085-6603
+ // Room for more Trinity strings 5084-6603
// Level requirement notifications
LANG_SAY_REQ = 6604,