mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[6812] Implement localization of creature/gameobject name that say/yell.
Original patch deeply rewrited. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
89612654da
commit
1da8ff0043
7 changed files with 42 additions and 2 deletions
|
|
@ -391,6 +391,8 @@ class MANGOS_DLL_SPEC WorldObject : public Object
|
|||
const char* GetName() const { return m_name.c_str(); }
|
||||
void SetName(std::string newname) { m_name=newname; }
|
||||
|
||||
virtual const char* GetNameForLocaleIdx(int32 /*locale_idx*/) const { return GetName(); }
|
||||
|
||||
float GetDistance( const WorldObject* obj ) const;
|
||||
float GetDistance(const float x, const float y, const float z) const;
|
||||
float GetDistance2d(const WorldObject* obj) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue