示例#1
0
 // Load config and other one-off data
 private void SaveEvents_AfterLoad(object sender, EventArgs e)
 {
     SecondaryNpcs = new Dictionary <string, bool>
     {
         { "Kent", false },
         { "Marlon", false },
         { "Merchant", false },
         { "Sandy", false },
         { "Wizard", false }
     };
     CustomHandler.UpdateCustomNpcs();
     NpcNames   = CustomHandler.GetNpcNames();
     MarkerCrop = CustomHandler.GetMarkerCrop();
     UpdateFarmBuildingLocs();
 }
示例#2
0
        // Load config and other one-off data
        private void SaveEvents_AfterLoad(object sender, EventArgs e)
        {
            SecondaryNpcs = new Dictionary <string, bool>
            {
                { "Kent", false },
                { "Marlon", false },
                { "Merchant", false },
                { "Sandy", false },
                { "Wizard", false }
            };
            CustomHandler.UpdateCustomNpcs();
            NpcNames   = CustomHandler.GetNpcNames();
            MarkerCrop = CustomHandler.GetMarkerCrop();

            // Preload
            UpdateFarmBuildingLocs();
            ResetMarkers();
            UpdateMarkers(true);
            ModMapPage = new ModMapPage(NpcMarkers, NpcNames, FarmerMarkers, Helper, Config);
        }