Beispiel #1
0
 public static IPvPBattle FindBattleIByID(PvPSerial serial)
 {
     return(Battles.Where(kvp => kvp.Key.Equals(serial)).Select(kvp => kvp.Value).FirstOrDefault());
 }
Beispiel #2
0
 public static PvPBattle FindBattleByID(int uid)
 {
     return(Battles.Where(o => o.Key.ValueHash.Equals(uid)).Select(kvp => kvp.Value).FirstOrDefault());
 }