public void leaveDungeonRequest(Action <PomeloException, LeaveDungeonResponse> cb, object option = null) { var request = new LeaveDungeonRequest(); _socket.request <LeaveDungeonResponse>(request, (object msg, out int s2c_code, out string s2c_msg) => { var rsp = msg as LeaveDungeonResponse; s2c_code = rsp.s2c_code; s2c_msg = rsp.s2c_msg; return(s2c_code == 200); }, cb, option); }
public void SendLeaveRequest() { LeaveDungeonRequest leaveDungeon = new LeaveDungeonRequest(); clientBehaviour.SendRequest(leaveDungeon); }