示例#1
0
        public static void Register(TileRegistry tileRegistry)
        {
            tileGrass          = new Tile(1).SetTextureName("tiles/grass");
            tileDirt           = new Tile(2).SetTextureName("tiles/dirt");
            tileFlowers        = new Tile(3).SetTextureName("tiles/flowers");
            tileWater          = new TileWater(4);
            tileLargeTest      = new TileLargeTest(5);
            tileNuclearReactor = new TileNuclearPlant(6);

            tileRegistry.Register(tileGrass);
            tileRegistry.Register(tileDirt);
            tileRegistry.Register(tileFlowers);
            tileRegistry.Register(tileWater);
            tileRegistry.Register(tileLargeTest);
            tileRegistry.Register(tileNuclearReactor);
        }