Пример #1
0
        static void Postfix()
        {
            if (!Main.enabled)
            {
                return;
            }

            TurnEvent.TryRegisterResources();
        }
Пример #2
0
 static void Postfix()
 {
     if (!TurnEvent.IsResourcesInjected())
     {
         bool isSuccess = TurnEvent.InjectResources();
         Main.Logger.Log(isSuccess ?
                         "Loaded resources of TurnEvent." :
                         "Failed to load resources of TurnEvent.");
     }
 }
Пример #3
0
        private static bool Prefix(UIDate __instance)
        {
            if (!Main.enabled)
            {
                return(true);
            }

            AutoHarvest.GetAllBooties();

            ResourceMaintainer.TryBuyingResources();

            ResourceMaintainer.UpdateResourceWarning();

            TurnEvent.RegisterEvent(__instance);

            return(true);
        }
Пример #4
0
        private static bool Prefix(UIDate __instance)
        {
            if (!Main.enabled)
            {
                return(true);
            }

            AutoHarvest.GetAllBooties();

            ResourceMaintainer.TryBuyingResources();

            ResourceMaintainer.UpdateResourceWarning();

            TurnEvent.AddEvent(__instance);

            if (Main.settings.autoAssignBuildingWorkers)
            {
                HumanResource.AssignBuildingWorkersForTaiwuVillage();
            }

            return(true);
        }