Exemplo n.º 1
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 hr          = new HumanResource();
                int           mainPartId  = int.Parse(DateFile.instance.GetGangDate(16, 3));
                int           mainPlaceId = int.Parse(DateFile.instance.GetGangDate(16, 4));
                hr.AssignBuildingWorkers(mainPartId, mainPlaceId);
            }

            return(true);
        }
Exemplo n.º 2
0
        private static bool Prefix(ref UIDate __instance)
        {
            if (!Main.enabled)
            {
                return(true);
            }

            AutoHarvest.GetAllBooties();

            AutoHarvest.RegisterEvent(ref __instance);

            return(true);
        }
Exemplo 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);
        }
Exemplo 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);
        }