Exemple #1
0
        public override Entity Clone()
        {
            EntityItem clone = new EntityItem(this.name, this.itemName, itemSprite.Clone());

            clone.selectionBox  = this.selectionBox;
            clone.drawingBox    = this.drawingBox;
            clone.collisionBox  = this.collisionBox;
            clone.collisionMask = Base.CollisionLayer.Item;
            clone.miningProps   = this.miningProps;
            clone.minable       = this.minable;
            return(clone);
        }