Пример #1
0
        public string GetMoveNameFromEnum(PSXAPI.Response.Payload.PokemonMoveID id)
        {
            var foundMove = GetMoveDataFromEnum(id);

            return(foundMove != null ? foundMove.Name : id.ToString());
        }
Пример #2
0
        public MoveData GetMoveDataFromEnum(PSXAPI.Response.Payload.PokemonMoveID id)
        {
            MoveData result = Moves.ToList().Find(move => move.BattleID.ToLowerInvariant() == id.ToString().ToLowerInvariant());

            return(result);
        }
Пример #3
0
        public MoveData GetMoveDataFromEnum(PSXAPI.Response.Payload.PokemonMoveID id)
        {
            var result = Moves.ToList().Find(move => string.Equals(move.BattleID, id.ToString(), StringComparison.InvariantCultureIgnoreCase));

            return(result);
        }