コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: SideMenu.cs プロジェクト: GHendrikx/Kernmodule4-2
    public void SendLeaveRequest()
    {
        LeaveDungeonRequest leaveDungeon = new LeaveDungeonRequest();

        clientBehaviour.SendRequest(leaveDungeon);
    }