static void Postfix() { if (!Main.enabled) { return; } TurnEvent.TryRegisterResources(); }
static void Postfix() { if (!TurnEvent.IsResourcesInjected()) { bool isSuccess = TurnEvent.InjectResources(); Main.Logger.Log(isSuccess ? "Loaded resources of TurnEvent." : "Failed to load resources of TurnEvent."); } }
private static bool Prefix(UIDate __instance) { if (!Main.enabled) { return(true); } AutoHarvest.GetAllBooties(); ResourceMaintainer.TryBuyingResources(); ResourceMaintainer.UpdateResourceWarning(); TurnEvent.RegisterEvent(__instance); return(true); }
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); }