private string GetSaveStorageSettingType() { InfiniteStorageType s = this.def.GetModExtension <InfiniteStorageType>(); if (s != null) { #if DEBUG Log.Warning("Found InfiniteStorageType = " + s.SaveSettingsType); #endif return(s.SaveSettingsType); } #if DEBUG Log.Warning("Did not find InfiniteStorageType def = " + def.label); #endif return(SaveTypeEnum.Zone_Stockpile.ToString()); }
private bool GetIncludeInWorldLookup() { InfiniteStorageType s = this.def.GetModExtension <InfiniteStorageType>(); if (s != null && s.IncludeInWorldLookup.Length > 0) { #if DEBUG Log.Warning("Found InfiniteStorageType = " + s.SaveSettingsType); #endif if (s.IncludeInWorldLookup.ToLower()[0] == 'f') { Log.Warning(" return false"); return(false); } } #if DEBUG Log.Warning("Did not find InfiniteStorageType def = " + def.label); #endif return(true); }