コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }