示例#1
0
    void handle_user_exit_match_res(cmd_msg msg)
    {
        ExitMatchRes res = proto_man.protobuf_deserialize <ExitMatchRes>(msg.body);

        if (res == null)
        {
            return;
        }
        if (res.status != Respones.OK)
        {
            Debug.Log("handle_user_exit_match_res: " + res.status);
            return;
        }
        ugames.Instance.zid = -1;
        event_manager.Instance.dispatch_event(event_manager.EVT_USER_EXIT_MATCH_SUCCESS, res);
    }
    private void OnUserExitReturn(cmd_msg msg)
    {
        ExitMatchRes res = proto_man
                           .protobuf_deserialize <ExitMatchRes>(msg.body);

        if (res == null)
        {
            return;
        }
        if (res.status != Response.OK)
        {
            Debug.Log("exit match status:" + res.status);
            return;
        }
        Debug.Log("exit match success!!!");
        EventManager.Instance.DispatchEvent("exit_match", null);
    }
示例#3
0
    private void on_user_exit_return(cmd_msg msg)
    {
        ExitMatchRes res = proto_man.protobuf_deserialize <ExitMatchRes>(msg.body);

        if (null == res)
        {
            return;
        }

        if (res.status != Respones.OK)
        {
            Debug.LogError("exit match error: " + res.status);
            return;
        }

        event_manager.Instance.dispatch_event("exit_match", null);
    }