Exemple #1
0
        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();
Exemple #2
0
 public static ILocalisable <string> ToLocalisable(this EquipmentClass equipClass)
 => EquipmentClassText.Localisable(equipClass);