Exemplo n.º 1
0
 public NearbyAvatarTracker(User user)
 {
     this.user = user;
     this.user.Objects.AvatarUpdate += new EventHandler<AvatarUpdateEventArgs>(Objects_AvatarUpdate);
     this.user.Objects.KillObject += new EventHandler<KillObjectEventArgs>(Objects_KillObject);
     this.user.Self.TeleportProgress += new EventHandler<TeleportEventArgs>(Self_TeleportProgress);
     this.user.Objects.ObjectUpdate += new EventHandler<PrimEventArgs>(Objects_ObjectUpdate);
 }
Exemplo n.º 2
0
        //        [Obsolete]
        //        public User NewUser(Creds creds)
        //        {
        //            User client = new User(creds);
        //            client.Settings.LOGIN_SERVER = creds.gridURL;
        //            //@todo if creds.gridName not in Grids list add it
        //            users.Add(client.sessionID, client);
        //            return client;
        //        }
        //create a new user and begin the login process
        public Guid BeginNewUserLogin(Creds creds)
        {
            //create the user object
            User client = new User(creds);

            //add the user to the list of users
            users.Add(client.sessionID, client);
            //initiate login
            client.BeginLogin();
            return client.sessionID;
        }