示例#1
0
 private void OnReload(ReloadEventArgs args)
 {
     Settings = SupplySettings.Read(PVP_CONFIG_PATH);
     if (Settings == null)
     {
         Console.WriteLine("Config is null.");
         Settings = new SupplySettings(new List <SupplySet>(), new List <MapData>());
     }
 }
示例#2
0
        public AutoSupplyMain(Main game)
            : base(game)
        {
            Settings = SupplySettings.Read(PVP_CONFIG_PATH);
            if (Settings == null)
            {
                Console.WriteLine("Config is null.");
                Settings = new SupplySettings(new List <SupplySet>(), new List <MapData>());
            }

            Instance = this;
        }