Beispiel #1
0
        new public static Government FromName(string from)
        {
            if (from is null)
            {
                return(None);
            }

            // EDSM uses a special string to describe engineering workshops, standardize here.
            from = from.Replace("Workshop (Engineer)", "engineer");
            return(ResourceBasedLocalizedEDName <Government> .FromName(from));
        }
Beispiel #2
0
        public new static FactionState FromName(string from)
        {
            if (string.IsNullOrEmpty(from))
            {
                return(None);
            }
            // EDSM uses "Terrorist Attack" rather than "Terrorism"
            var tidiedFrom = from
                             .Replace("Terrorist Attack", "Terrorism");

            return(ResourceBasedLocalizedEDName <FactionState> .FromName(tidiedFrom));
        }