Example #1
0
 public RenderComponent(GameEntity entity, RenderComponent parent) : this(entity)
 {
     parent_ = parent;
     parent.children_.Add(this);
     texture_id_ = parent_.texture_id_;
     layer_      = parent.layer_;
     origin_     = parent.origin_;
     color_      = parent.color_;
 }
Example #2
0
 public override Component deepCopy(GameEntity entity)
 {
     RenderComponent c = new RenderComponent(entity);
     c.texture_id_ = texture_id_;
     c.layer_ = layer_;
     c.origin_ = origin_;
     c.color_ = color_;
     return c;
 }
Example #3
0
        public override Component deepCopy(GameEntity entity)
        {
            RenderComponent c = new RenderComponent(entity);

            c.texture_id_ = texture_id_;
            c.layer_      = layer_;
            c.origin_     = origin_;
            c.color_      = color_;
            return(c);
        }
Example #4
0
 public RenderComponent(GameEntity entity, RenderComponent parent)
     : this(entity)
 {
     parent_ = parent;
     parent.children_.Add(this);
     texture_id_ = parent_.texture_id_;
     layer_ = parent.layer_;
     origin_ = parent.origin_;
     color_ = parent.color_;
 }
Example #5
0
 private void remove(RenderComponent render)
 {
     renders_.Remove(render);
 }
Example #6
0
 private void add(RenderComponent render)
 {
     renders_.Add(render);
 }