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(); }
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(); }
public void ObtainAvatarFromTicket(VM vm, string ticket, VMAsyncAvatarCallback callback) { throw new NotImplementedException(); }
public void ObtainAvatarFromTicket(VM vm, string ticket, VMAsyncAvatarCallback callback) { }