public override string GetInfo() { var info = ""; init_supported_types(); if (ChooseTankType) { info += SwitchableTankType.TypesInfo(include, exclude); } if (!init_tank_type()) { return(info); } info += tank_type.Info; info += "Tank Volume: " + Utils.formatVolume(Volume); return(info); }
public string GetInfo(ConfigNode node) { base.Load(node); init_supported_types(); var info = ""; if (TypeChangeEnabled) { info += SwitchableTankType.TypesInfo(include, exclude); } var volumes = ConfigNodeObject.FromConfig <VolumeConfiguration>(node); if (volumes.Valid) { info = string.Concat(info, "Preconfigured Tanks:\n", volumes.Info()); } return(info); }