diff options
| author | ModoX <moardox@gmail.com> | 2024-04-09 16:33:39 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-05-28 16:40:19 +0200 |
| commit | 3db82077c9a7565e82089b2d6436031c2eceb17b (patch) | |
| tree | 7105c9fae7ff127270d888b23c5121e215799466 /src/server/game/Entities/GameObject | |
| parent | 33ab88ac96c49ae02961158d82e4a55774101ccb (diff) | |
Core/Entities: Added GetStringId helper methods
(cherry picked from commit 5cea37153eb6675bf0a25320a1c11cd0ec4969b6)
Diffstat (limited to 'src/server/game/Entities/GameObject')
| -rw-r--r-- | src/server/game/Entities/GameObject/GameObject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index 0f8941dc870..7cc72dd92c9 100644 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -381,6 +381,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject> bool HasStringId(std::string_view id) const; void SetScriptStringId(std::string id); std::array<std::string_view, 3> const& GetStringIds() const { return m_stringIds; } + std::string_view const& GetStringId(StringIdType type) const { return m_stringIds[AsUnderlyingType(type)]; } void SetDisplayId(uint32 displayid); uint32 GetDisplayId() const { return m_gameObjectData->DisplayID; } |
