예제 #1
0
        ////////////////////////////////////////////////////////////////////////////////
        // Rust Rcon Data Methods
        ////////////////////////////////////////////////////////////////////////////////
        public void UpdateRustPlayerData(Rust.Models.Player player)
        {
            CurrentPersonaName = player.Name;
            KnownPersonaNames.Add(player.Name);
            CurrentIPAddress = IPAddress.FromString(player.IPAddress);
            KnownIPAddresses.Add(CurrentIPAddress);
            CurrentSessionConnectionDuration = player.ConnectedDuration / 60;
            Ping = player.Ping;


            //TODO this might not be needed
            SteamID = player.SteamID;
        }
예제 #2
0
        ////////////////////////////////////////////////////////////////////////////////
        // Steam Data Methods
        ////////////////////////////////////////////////////////////////////////////////
        public void UpdateSteamPlayerData(Steam.Models.Player steamPlayer)
        {
            KnownPersonaNames.Add(CurrentPersonaName);
            CurrentPersonaName = steamPlayer.PersonaName;

            AvatarSmallURL  = steamPlayer.AvatarSmallURL;
            AvatarMediumURL = steamPlayer.AvatarMediumURL;
            AvatarFullURL   = steamPlayer.AvatarFullURL;

            IsSteamProfilePrivate    = steamPlayer.CommunityVisibilityState != Steam.CommunityVisibilityState.Public;
            IsSteamProfileConfigured = steamPlayer.ProfileState == Steam.ProfileState.Setup;
            SteamProfileTimeCreated  = steamPlayer.TimeCreated;
        }