예제 #1
0
        public void ObtainAvatarFromTicket(VM vm, string ticket, VMAsyncAvatarCallback callback)
        {
            //gets an avatar from our stub database based on their ticket
            var uid = Database.FindOrAddAvatar(ticket);

            var permissions = VMTSOAvatarPermissions.Visitor;

            if (Database.Administrators.Contains(uid))
            {
                permissions = VMTSOAvatarPermissions.Admin;
            }
            else if (vm.TSOState.BuildRoommates.Contains(uid))
            {
                permissions = VMTSOAvatarPermissions.BuildBuyRoommate;
            }
            else if (vm.TSOState.Roommates.Contains(uid))
            {
                permissions = VMTSOAvatarPermissions.Roommate;
            }

            //TODO!!!!!! This is a HACK to make sure SimJoin commands get sent AFTER the state sync.
            new System.Threading.Thread(() =>
            {
                System.Threading.Thread.Sleep(100);
                callback(uid, permissions);
            }).Start();
        }
예제 #2
0
        public void ObtainAvatarFromTicket(VM vm, string ticket, VMAsyncAvatarCallback callback)
        {
            //gets an avatar from our stub database based on their ticket
            var uid = Database.FindOrAddAvatar(ticket);

            var permissions = VMTSOAvatarPermissions.Visitor;
            if (Database.Administrators.Contains(uid)) permissions = VMTSOAvatarPermissions.Admin;
            else if (vm.TSOState.BuildRoommates.Contains(uid)) permissions = VMTSOAvatarPermissions.BuildBuyRoommate;
            else if (vm.TSOState.Roommates.Contains(uid)) permissions = VMTSOAvatarPermissions.Roommate;

            //TODO!!!!!! This is a HACK to make sure SimJoin commands get sent AFTER the state sync.
            new System.Threading.Thread(() =>
            {
                System.Threading.Thread.Sleep(100);
                callback(uid, permissions);
            }).Start();
        }
예제 #3
0
 public void ObtainAvatarFromTicket(VM vm, string ticket, VMAsyncAvatarCallback callback)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public void ObtainAvatarFromTicket(VM vm, string ticket, VMAsyncAvatarCallback callback)
 {
 }