示例#1
0
文件: OldMap.cs 项目: w1r2p1/unitrpg
        public void AddInteractiveTile(InteractiveTile tile)
        {
            if (_interactiveTilesByPosition.ContainsKey(tile.GridPosition))
            {
                throw new ArgumentException("Cannot place two interactive tiles at the same position.");
            }

            _interactiveTilesByPosition[tile.GridPosition] = tile;
        }
示例#2
0
 public void TriggerInteractiveTile(InteractiveTile tile, Unit unit)
 {
     tile.Trigger();
     _turnState.RecordAction(unit);
 }