public static void __Resize(int x, int y, int z) { var old_map = __Map; __Map = new Game.Tile[x, y, z]; // LOOKS LIKE THE WHOLE ZONE SINGLETON THING ISNT HANDLED IN A FUCKY WAY -- HOORAY! (still need to investigate!) Game.Zone zone_instance = __GetZoneInstance(Game13.default_zone); for (int ix = 0; ix < x; ix++) { for (int iy = 0; iy < y; iy++) { for (int iz = 0; iz < z; iz++) { if (ix < old_map.GetLength(0) && iy < old_map.GetLength(1) && iz < old_map.GetLength(2)) { __Map[ix, iy, iz] = old_map[ix, iy, iz]; } else { Game.Tile tile_instance = Base_Tile.RawCreate(Game13.default_tile, ix + 1, iy + 1, iz + 1); zone_instance.contents.Add(tile_instance); } } } } }
void Regulus.Framework.ILaunched.Launch() { _Stroage = new Storage(); _Stroage.Initial(); _World = new Game.Zone(_Stroage); }