public static ReturnValue <List <ZhanDuiZhengBaNtfPkResultData> > ZhengBaPkResult(int gameId, int winner1) { AutoWaitReturnValue <KfCall._p28> _wait_ = AutoWaitReturnValue <KfCall._p28> .Pop(); try { AutoCSer.Net.TcpInternalServer.ClientSocketSender _socket_ = KfCall.TcpClient.Sender; if (_socket_ != null) { KfCall._p27 _inputParameter_ = new KfCall._p27 { p0 = gameId, p1 = winner1 }; KfCall._p28 _outputParameter_ = default(KfCall._p28); ReturnType _returnType_ = _socket_.WaitGet <KfCall._p27, KfCall._p28>(TcpCall.ZhanDuiZhengBa_K._c18, ref _wait_, ref _inputParameter_, ref _outputParameter_); return(new ReturnValue <List <ZhanDuiZhengBaNtfPkResultData> > { Type = _returnType_, Value = _outputParameter_.Return }); } } finally { if (_wait_ != null) { AutoWaitReturnValue <KfCall._p28> .PushNotNull(_wait_); } } return(new ReturnValue <List <ZhanDuiZhengBaNtfPkResultData> > { Type = ReturnType.ClientException }); }
public static ReturnValue <int> GameState(int gameId, int state) { AutoWaitReturnValue <KfCall._p6> _wait_ = AutoWaitReturnValue <KfCall._p6> .Pop(); try { AutoCSer.Net.TcpInternalServer.ClientSocketSender _socket_ = KfCall.TcpClient.Sender; if (_socket_ != null) { KfCall._p27 _inputParameter_ = new KfCall._p27 { p0 = gameId, p1 = state }; KfCall._p6 _outputParameter_ = default(KfCall._p6); ReturnType _returnType_ = _socket_.WaitGet <KfCall._p27, KfCall._p6>(TcpCall.EscapeBattle_K._c21, ref _wait_, ref _inputParameter_, ref _outputParameter_); return(new ReturnValue <int> { Type = _returnType_, Value = _outputParameter_.Return }); } } finally { if (_wait_ != null) { AutoWaitReturnValue <KfCall._p6> .PushNotNull(_wait_); } } return(new ReturnValue <int> { Type = ReturnType.ClientException }); }