From fe96eee5db2acbef1ea0f360b180fd9f8f990444 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 28 Dec 2012 22:53:10 +0000 Subject: Addedd core:: support for EntityGlobe rings. --- src/core/entityglobe.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/core/entityglobe.h') diff --git a/src/core/entityglobe.h b/src/core/entityglobe.h index e60f61a..2643263 100644 --- a/src/core/entityglobe.h +++ b/src/core/entityglobe.h @@ -48,6 +48,16 @@ public: return entity_corona_id; } + /// rings texture name + inline const std::string &ringsname() const { + return entity_ringsname; + } + + /// rings texture id + inline size_t rings_id() const { + return entity_rings_id; + } + /// rotation speed in degrees per second inline float rotationspeed() const { return entity_rotationspeed; @@ -67,6 +77,10 @@ public: entity_corona_id = texture_id; } + inline void set_rings_id(size_t texture_id) { + entity_rings_id = texture_id; + } + inline void set_texturename(const std::string & texturename) { entity_texturename.assign(texturename); } @@ -74,6 +88,10 @@ public: inline void set_coronaname(const std::string & texturename) { entity_coronaname.assign(texturename); } + + inline void set_ringsname(const std::string & texturename) { + entity_ringsname.assign(texturename); + } /*----- serializers ----------------------------------------------- */ @@ -87,8 +105,11 @@ private: float entity_rotationspeed; size_t entity_texture_id; size_t entity_corona_id; + size_t entity_rings_id; + std::string entity_texturename; std::string entity_coronaname; + std::string entity_ringsname; }; } -- cgit v1.2.3