Ejemplo n.º 1
0
        internal void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, hitbox, sourceBox, Color.White);
            if (Visible || IsWall)
            {
                if (Item != null)
                {
                    Item.DrawItem(spriteBatch);
                }

                if (IsOccupied)
                {
                    Occupant.Draw(spriteBatch);
                }
                Visible = false;
            }
            else
            {
                spriteBatch.Draw(texture, hitbox, Tileset.FogSourceBox, Color.White);
            }
        }