diff options
Diffstat (limited to 'src/core/entity.h')
-rw-r--r-- | src/core/entity.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/entity.h b/src/core/entity.h index c988143..4861b07 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -155,6 +155,18 @@ public: */ virtual void set_zone(Zone *zone); + /// set the label + void set_label(char const *label); + + /// set the label + void set_label(std::string const &label); + + /// set the name + void set_name(char const *name); + + /// set the name + void set_name(std::string const &name); + /// clear all update flags virtual void clear_updates(); @@ -183,8 +195,6 @@ public: math::Axis entity_axis; float entity_radius; - std::string entity_name; - std::string entity_label; std::string entity_modelname; model::Model *entity_model; Shape entity_shape; @@ -210,6 +220,9 @@ protected: bool entity_serverside; + std::string entity_name; + std::string entity_label; + private: // add an entity to the registry static void add(Entity *ent); |