EddiDataDefinitions.GameMode.FromName C# (CSharp) Méthode

FromName() public static méthode

public static FromName ( string from ) : GameMode
from string
Résultat GameMode
        public static GameMode FromName(string from)
        {
            GameMode result = MODES.FirstOrDefault(v => v.name == from);
            if (result == null)
            {
                Logging.Report("Unknown game mode name " + from);
            }
            return result;
        }