Пример #1
0
 public void LeaveLot(VM vm, VMAvatar avatar)
 {
     //TODO: in the global server, this will save the avatar (and possibly lot) states and send back to server.
     if (avatar.PersistID == vm.MyUID)
     {
         //stub has some functionality here. if we have left lot, disconnect.
         vm.CloseNet(VMCloseNetReason.LeaveLot);
     }
     avatar.Delete(true, vm.Context);
     vm.Context.VM.SignalChatEvent(new VMChatEvent(avatar.PersistID, VMChatEventType.Leave, avatar.Name));
 }
Пример #2
0
 public void LeaveLot(VM vm, VMAvatar avatar)
 {
     //TODO: in the global server, this will save the avatar (and possibly lot) states and send back to server.
     if (avatar.PersistID == vm.MyUID)
     {
         //stub has some functionality here. if we have left lot, disconnect.
         vm.CloseNet(VMCloseNetReason.LeaveLot);
     }
     avatar.Delete(true, vm.Context);
     vm.Context.VM.SignalChatEvent(new VMChatEvent(avatar, VMChatEventType.Leave, avatar.Name));
 }
Пример #3
0
 public void LeaveLot(VM vm, VMAvatar avatar)
 {
     avatar.Delete(true, vm.Context);
     vm.Context.VM.SignalChatEvent(new VMChatEvent(avatar, VMChatEventType.Leave, avatar.Name));
 }