private void OnCashInfo(CmdGameAnswerCashInfo data) { if(data.GetAck ()==1){ WebLog.Log(data); model.GACI_cashinfo=data ; } else{} }
public static void DeserializeGAME_ANSWER_CASH_INFO (byte[] bytes) { CmdGameAnswerCashInfo pk = new CmdGameAnswerCashInfo (); pk.Make (bytes [0], bytes [1]); if (pk.GetAck () == 0) { } else if (pk.GetAck () == 1) { //初始化偏移 int ReadOffset = 2; pk.cash = System.BitConverter.ToInt64 (bytes, ReadOffset); } OnRecDta<CmdGameAnswerCashInfo> dlg = Singletons.GET<LobbyService> ().OnLobbyCashInfo; if (dlg != null) { dlg (pk); } }