mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
fix: player name 3d text not updating by Decorator
This commit is contained in:
parent
a9d185256a
commit
33db2633a2
5 changed files with 23 additions and 20 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue