Пример #1
0
 public override void SetTileType(RLTileType type)
 {
     TileType = type;
     if (TileDisplayRefresh != null)
     {
         TileDisplayRefresh(this);
     }
 }
Пример #2
0
        public DungeonFloor(int width, int height, RLTileType defaultType)
        {
            Tags = new List <string>();
            DungeonRegion mainRegion = new DungeonRegion(new Vector2Int(0, 0), new Vector2Int(width, height));

            Regions = new List <DungeonRegion> {
                mainRegion
            };
            Tiles = new RLBaseTile[width, height];
            ForTilesInRegion(mainRegion, (x, y, tile) => new RLSimpleTile(new Vector3Int(x, y, 0), defaultType, this));
        }
Пример #3
0
 public abstract void SetTileType(RLTileType type);
Пример #4
0
 public RLSimpleTile(Vector3Int position, RLTileType type, DungeonFloor floor)
 {
     Position = position;
     TileType = type;
     Floor    = floor;
 }