示例#1
0
        public IActionResult GetAllPlayers()
        {
            IEnumerable <ServerSidePlayer> players = _registry.GetAllPlayers();

            return(base.Ok(new GetAllPlayersResponse {
                Players = GetOverviewFromPlayer(players),
            }));
        }
示例#2
0
        public IActionResult GetAllPlayers()
        {
            List <ServerSidePlayerOverview> result = playerRegistry.GetAllPlayers();

            return(base.Ok(result));
        }