Esempio n. 1
0
        static void Postfix()
        {
            if (!Main.enabled)
            {
                return;
            }

            TurnEvent.TryRegisterResources();
        }
Esempio n. 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.");
     }
 }
Esempio n. 3
0
        private static bool Prefix(UIDate __instance)
        {
            if (!Main.enabled)
            {
                return(true);
            }

            AutoHarvest.GetAllBooties();

            ResourceMaintainer.TryBuyingResources();

            ResourceMaintainer.UpdateResourceWarning();

            TurnEvent.RegisterEvent(__instance);

            return(true);
        }
Esempio n. 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);
        }