Ejemplo n.º 1
0
        private async Task When(LeaveCommand cmd)
        {
            _applications[_roomName].Execute(cmd);
            await _group.RemoveAsync(Context);

            _disposables.Dispose();
        }
Ejemplo n.º 2
0
 void PathPointNode_MouseLeave(object sender, MouseEventArgs e)
 {
     if (LeaveCommand != null)
     {
         LeaveCommand.Execute(this);
     }
     e.Handled = true;
 }
Ejemplo n.º 3
0
    public void leaveParty()
    {
        LeaveCommand cmd = new LeaveCommand();

        cmd.type   = (int)CommandType.LEAVE;
        cmd.party  = curParty;
        cmd.player = curPlayer;

        string jsonCmd = JsonUtility.ToJson(cmd);

        currentSocket.Send(jsonCmd);
    }
Ejemplo n.º 4
0
 private void When(LeaveCommand cmd)
 {
     Update(_roomName, world => world.RemovePlayer(cmd.PlayerId));
 }