12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Graphics;
- namespace Tile_Engine
- {
- [Serializable]
- public class MapSquare
- {
- #region Declarations
- public int[] LayerTiles = new int[3];
- public string CodeValue = "";
- public bool Passable = true;
- #endregion
- #region Constructor
- public MapSquare(
- int background,
- int interactive,
- int foreground,
- string code,
- bool passable)
- {
- LayerTiles[0] = background;
- LayerTiles[1] = interactive;
- LayerTiles[2] = foreground;
- CodeValue = code;
- Passable = passable;
- }
- #endregion
- #region Public Methods
- public void TogglePassable()
- {
- Passable = !Passable;
- }
- #endregion
- }
- }
|