示例#1
0
    public void EnterWar()
    {
        ///
        /// 进入战后界面之前,必须先处理好Server和Client握手协议
        ///
        WarStartParam param = new WarStartParam();

        Core.EntityMgr.sendMessage(LogicalType.Anonymous, LogicalType.War, param, true, MsgRecType.MakeSure);
    }
示例#2
0
        public override void UI_OnReceive(MsgParam param)
        {
            base.UI_OnReceive(param);

            if (param is WarStartParam)
            {
                WarStartParam OkParam = (WarStartParam)param;
                warInfo = OkParam.warinfo;
                WarBegin();
            }
        }
示例#3
0
    public static void  SendEnterWarMsg()
    {
        WarStartParam param = new WarStartParam();

        Core.EntityMgr.sendMessage(LogicalType.Anonymous, LogicalType.War, param, true, MsgRecType.MakeSure);
    }