//申请开始pvp public void RequireStartPVP(NFrame.NFGUID objectID, int nGold, int nDiamond) { NFMsg.ReqAckStartBattle xData = new NFMsg.ReqAckStartBattle(); xData.diamond = nDiamond; xData.gold = nGold; mxBody.SetLength(0); mxSerializer.Serialize(mxBody, xData); SendMsg(objectID, NFMsg.EGameMsgID.EGMI_REQ_START_OPPNENT, mxBody); }
private void EGMI_ACK_START_OPPNENT(NFMsg.MsgBase xMsg) { NFMsg.ReqAckStartBattle xData = new NFMsg.ReqAckStartBattle(); xData = mxSerializer.Deserialize(new MemoryStream(xMsg.msg_data), null, typeof(NFMsg.ReqAckStartBattle)) as NFMsg.ReqAckStartBattle; NFCWindowManager.Instance.HideAllWindows(); NFCWindowManager.Instance.ShowWindows(NFCWindows.UI_WIN_STATE.UI_WIN_RETURN); NFCWindowManager.Instance.ShowWindows(NFCWindows.UI_WIN_STATE.UI_WIN_FIGHT_TOP); NFCWindowManager.Instance.ShowWindows(NFCWindows.UI_WIN_STATE.UI_WIN_MONEY_TOP); NFCWindowManager.Instance.ShowWindows(NFCWindows.UI_WIN_STATE.UI_WIN_MAIN_SKILL); NFStart.Instance.SetJoyEnable(true); }