Exemplo n.º 1
0
        private LobbyUserExtension GetOrCreateLobbiesExtension(IPeer peer)
        {
            var extension = peer.GetExtension <LobbyUserExtension>();

            if (extension == null)
            {
                extension = new LobbyUserExtension(peer);
                peer.AddExtension(extension);
            }

            return(extension);
        }
Exemplo n.º 2
0
 public LobbyMember(string username, LobbyUserExtension ext)
 {
     Username   = username;
     Extension  = ext;
     Properties = new Dictionary <string, string>();
 }