Exemple #1
0
        internal NetworkGamer(
            NetworkSession session
            ) : base(
                "Stub Gamer",
                "Stub Gamer"
                )
        {
            Session = session;

            // TODO: Everything below
            HasLeftSession     = false;
            HasVoice           = false;
            IsGuest            = false;
            IsMutedByLocalUser = false;
            IsPrivateSlot      = false;
            IsReady            = false;
            IsTalking          = false;
            Machine            = new NetworkMachine();
            RoundtripTime      = TimeSpan.Zero;
        }
        internal NetworkGamer(
            Steamworks.CSteamID id,
            NetworkSession session
            ) : base(
                id,
                Steamworks.SteamFriends.GetFriendPersonaName(id),
                Steamworks.SteamFriends.GetPlayerNickname(id)
                )
        {
            Session = session;

            // TODO: Everything below
            HasLeftSession     = false;
            HasVoice           = false;
            IsGuest            = false;
            IsMutedByLocalUser = false;
            IsPrivateSlot      = false;
            IsReady            = false;
            IsTalking          = false;
            Machine            = new NetworkMachine();
            RoundtripTime      = TimeSpan.Zero;
        }