Beispiel #1
0
        private void LoadMap()
        {
            //if (Map.Preview != null) {
            //    MapPreview = Map.GetPreviewTexture(GraphicsDevice);
            //} else {
            //    MapPreview = null;
            //}

            Map.Initialize();

            Tactical.SetMap(Map);

            INI.Rules_Combined = new INI();

            INI.Rules_Combined.CombineWithFile(INI.Rules_INI);

            INI.Rules_Combined.CombineWithFile(Map.MapFile);

            TiberiumClass.LoadListFromINI(INI.Rules_Combined);

            OverlayTypeClass.LoadListFromINI(INI.Rules_Combined);

            IsoTileTypeClass.LoadListFromINI(Map.TheaterData, true);

            IsoTileTypeClass.PrepaintTiles();

            TiberiumClass.All.ReadAllFromINI(INI.Rules_Combined);

            CCFactory <OverlayTypeClass, OverlayClass> .Get().ReadAllFromINI(INI.Rules_Combined);

            Map.SetupOverlays();
        }