Пример #1
0
        public static List <ulong> SteamIds(this IMyFaction faction)
        {
            List <long> playerIds = faction.PlayerIds();

            List <IMyPlayer> allPlayers = new List <IMyPlayer>();

            MyAPIGateway.Multiplayer.Players.GetPlayers(allPlayers, (x) => {
                return(playerIds.Contains(x.PlayerID));
            });

            return(allPlayers.Select((x) => x.SteamUserId).ToList());
        }