public void EnterWar() { /// /// 进入战后界面之前,必须先处理好Server和Client握手协议 /// WarStartParam param = new WarStartParam(); Core.EntityMgr.sendMessage(LogicalType.Anonymous, LogicalType.War, param, true, MsgRecType.MakeSure); }
public override void UI_OnReceive(MsgParam param) { base.UI_OnReceive(param); if (param is WarStartParam) { WarStartParam OkParam = (WarStartParam)param; warInfo = OkParam.warinfo; WarBegin(); } }
public static void SendEnterWarMsg() { WarStartParam param = new WarStartParam(); Core.EntityMgr.sendMessage(LogicalType.Anonymous, LogicalType.War, param, true, MsgRecType.MakeSure); }