/// <summary> /// Initializes some strings, which when resolving LocString.ToString at runtime would /// require a relatively expensive Strings.Get. /// </summary> internal static void Init() { HIGH_TC = MODIFIERS.TOOLTIP.HIGH_THERMAL_CONDUCTIVITY.Replace("{1}", "{1:0.######}"); LOW_TC = MODIFIERS.TOOLTIP.LOW_THERMAL_CONDUCTIVITY.Replace("{1}", "{1:0.######}"); PLANT_EFFECTS.SetupDescriptor(PLANTERSIDESCREEN.PLANTEFFECTS, PLANTERSIDESCREEN. TOOLTIPS.PLANTEFFECTS); PLANT_LIFECYCLE.SetupDescriptor(PLANTERSIDESCREEN.LIFECYCLE, PLANTERSIDESCREEN. TOOLTIPS.PLANTLIFECYCLE, Descriptor.DescriptorType.Lifecycle); PLANT_REQUIREMENTS.SetupDescriptor(PLANTERSIDESCREEN.PLANTREQUIREMENTS, PLANTERSIDESCREEN.TOOLTIPS.PLANTREQUIREMENTS, Descriptor.DescriptorType. Requirement); DescriptorSorter.CreateInstance(); }
internal static void CreateInstance() { Instance = new DescriptorSorter(); }