public static PlayerCore GetPlayer_GM(ulong palyerId) { var gamerDisplay = GamerCache.GetGamerDisplay(palyerId); if (gamerDisplay == null || gamerDisplay.playerbase.playerid > 0) { return(null); } return(GamerCache.GetPlayer(palyerId) ?? GamerCache.LoadPlayer(palyerId)); }
public static List <PlayerDispaly> GetGamerDisplayList(List <ulong> gamerIDList) { var displayList = new List <PlayerDispaly>(); foreach (var gamerID in gamerIDList) { var display = GamerCache.GetGamerDisplay(gamerID); if (display != null) { displayList.Add(display); } } return(displayList); }
public static List <PlayerCore> GetPlayerCoresByIds(List <ulong> gamerIDList) { var gamerList = new List <PlayerCore>(); foreach (var gamerID in gamerIDList) { var gamer = GamerCache.GetPlayer(gamerID); if (gamer != null) { gamerList.Add(gamer); } } return(gamerList); }