mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
@@ -201,7 +201,7 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma
|
||||
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)]; }
|
||||
std::string_view GetStringId(StringIdType type) const { return m_stringIds[size_t(type)]; }
|
||||
|
||||
// override WorldObject function for proper name localization
|
||||
std::string const& GetNameForLocaleIdx(LocaleConstant locale_idx) const override;
|
||||
|
||||
@@ -277,7 +277,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)]; }
|
||||
std::string_view GetStringId(StringIdType type) const { return m_stringIds[size_t(type)]; }
|
||||
|
||||
void SetDisplayId(uint32 displayid);
|
||||
uint32 GetDisplayId() const { return GetUInt32Value(GAMEOBJECT_DISPLAYID); }
|
||||
|
||||
Reference in New Issue
Block a user