fix: player name 3d text not updating by Decorator

This commit is contained in:
MihailRis 2026-04-03 19:49:19 +03:00
parent a9d185256a
commit 33db2633a2
5 changed files with 23 additions and 20 deletions

View file

@ -45,7 +45,7 @@ struct CursorSelection {
class Player : public Serializable {
Level& level;
int64_t id;
std::string name;
std::wstring name;
float speed;
int chosenSlot;
@ -79,7 +79,7 @@ public:
Player(
Level& level,
int64_t id,
const std::string& name,
const std::wstring& name,
glm::vec3 position,
float speed,
std::shared_ptr<Inventory> inv,
@ -124,8 +124,8 @@ public:
entityid_t getSelectedEntity() const;
void setName(const std::string& name);
const std::string& getName() const;
void setName(const std::wstring& name);
const std::wstring& getName() const;
const std::shared_ptr<Inventory>& getInventory() const;