Exemplo n.º 1
0
 internal static void UpdateConditionalEdits()
 {
     foreach (Tile t in ModEntry.PatchData.DynamicTiles)
     {
         Processors.ApplyTile(t);
     }
     foreach (Warp t in ModEntry.PatchData.DynamicWarps)
     {
         Processors.ApplyWarp(t);
     }
     foreach (Property t in ModEntry.PatchData.DynamicProperties)
     {
         Processors.ApplyProperty(t);
     }
 }
Exemplo n.º 2
0
 internal static void UpdateConditionalEdits()
 {
     foreach (Tile t in Compound.DynamicTiles)
     {
         Processors.ApplyTile(t);
     }
     foreach (Configs.Warp t in Compound.DynamicWarps)
     {
         Processors.ApplyWarp(t);
     }
     foreach (Property t in Compound.DynamicProperties)
     {
         Processors.ApplyProperty(t);
     }
 }
Exemplo n.º 3
0
        internal static void UpdateTilesheets()
        {
            List <string> locations = new List <string>();

            foreach (Tilesheet t in Compound.SeasonalTilesheets)
            {
                Processors.ApplyTilesheet(t);
                if (!locations.Contains(t.MapName))
                {
                    locations.Add(t.MapName);
                }
            }
            foreach (string map in locations)
            {
                xTile.Map location = Game1.getLocationFromName(map).map;
                location.DisposeTileSheets(Game1.mapDisplayDevice);
                location.LoadTileSheets(Game1.mapDisplayDevice);
            }
        }
Exemplo n.º 4
0
        internal static void UpdateTilesheets()
        {
            Logger.Log("Month changed, updating custom seasonal tilesheets...", LogLevel.Trace);
            List <string> locations = new List <string>();

            foreach (var pair in ModEntry.PatchData.SeasonalTilesheets)
            {
                foreach (var tilesheet in pair.Value)
                {
                    Processors.ApplyTilesheet(ModEntry.SHelper.Content, pair.Key, tilesheet);
                    if (!locations.Contains(tilesheet.MapName))
                    {
                        locations.Add(tilesheet.MapName);
                    }
                }
            }
            foreach (string map in locations)
            {
                xTile.Map location = Game1.getLocationFromName(map).map;
                location.DisposeTileSheets(Game1.mapDisplayDevice);
                location.LoadTileSheets(Game1.mapDisplayDevice);
            }
        }