public static string[] GetNames(this EquipmentClass equipClass, ITextResourceCollection textResource) { var alt = EquipmentClassText.LocalisableAlt(equipClass).Localise(textResource); var main = equipClass.ToLocalisable().Localise(textResource); if (alt == null) { return new string[] { main } } ; else { return new string[] { main } }.Concat(alt.Split(',')).ToArray();
public static ILocalisable <string> ToLocalisable(this EquipmentClass equipClass) => EquipmentClassText.Localisable(equipClass);