public Base() { Instance = this; DefInjector = new XenobionicPatcher.DefInjectors(); ModLogger = this.Logger; IsDebug = false; }
public Base() { Instance = this; DefInjector = new FactionBlender.DefInjectors(); FB_Factions = new List <FactionDef>(); ModLogger = this.Logger; Config = config; }
public static void Initialize(HugsLib.Utils.ModLogger logger) { WorkGiverUtils.logger = logger; allWorkGiverStates = new Dictionary <string, WorkGiverState>(DefDatabase <WorkGiverDef> .AllDefsListForReading.Count); foreach (WorkGiverDef def in DefDatabase <WorkGiverDef> .AllDefs) { allWorkGiverStates[def.defName] = new WorkGiverState(def); } }
public Base() { Instance = this; ModLogger = this.Logger; IsDebug = false; origVerbPropertiesCache = new Dictionary <string, List <VerbProperties> > { }; origToolsCache = new Dictionary <string, List <Tool> > { }; }
public static void Initialize(HugsLib.Utils.ModLogger logger) { WorkTypeUtils.logger = logger; UpdateWorkTypeArrays(); }
public static void Initialize(HugsLib.Utils.ModLogger logger, ModSettingsPack settings) { ModSettingUtils.logger = logger; List <ModSetting> ms = new List <ModSetting>(); ms.Add( new WorkTypeEnabledSetting( "Nursing", "Nurse Job", "Assists doctors by taking care of basic tasks", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Feeding", "Feed Job", "Feeds prisoners and patients to allow wardens to focus on socializing", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Refueling", "Refuel Job", "Adds fuel to generators, torches, etc.", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "TrapRearming", "Trap Rearm Job", "Rearms traps", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Brewing", "Brew Job", "Brew beverages", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Maintenance", "Maintenance Job", "Refuel, rearm, repair, build/destroy roofs, and other maintenance tasks", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Demolition", "Demolition Job", "Demolish structures, uninstall furniture, smooth/remove flooring, etc.", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Harvesting", "Harvest Job", "Harvest crops", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Sowing", "Sow Job", "Plant crops", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Loading", "Load Job", "Load/Unload caravans, transporters and other carriers", true, settings ) ); ms.Add( new WorkTypeEnabledSetting( "Mortician", "Mortician Job", "Bury bodies and carry out cremation tasks", true, settings ) ); ms.Add( new WorkGiverEnabledSetting( "HaulerHaulToBlueprint", "Haulers Can Haul to Blueprints", "Allow haulers to haul to construction blueprints", true, settings ) ); modSettings = new Dictionary <string, ModSetting>(ms.Count); foreach (ModSetting s in ms) { modSettings[s.codeName] = s; } }