public Structure(CollisionBody collision, StructureData data) : base(collision) { this.Data = data; if (collision.Shape == CollisionBody.ShapeType.Rectangle) { RectangleBody rect = ((RectangleBody)this.Collision); rect.Size = new Vector2(collision.Region().Width *data.Width, collision.Region().Height *data.Height); } }
public void Draw(SpriteBatch spriteBatch) { this.Sprite.Draw(spriteBatch, Collision.Region()); }