示例#1
0
        public void OnKinStringPropUpdate(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            GameLogic.cmd_kin_stringprop_update cmdDate = helper.get <GameLogic.cmd_kin_stringprop_update>();
            // 设置战队基本数据
            TKinProp nPropID = (TKinProp)cmdDate.nPropID;

            switch (nPropID)
            {
            // 战队名
            case TKinProp.emKinProp_Name:
            {
            }
            break;

            // 战队的宣言
            case TKinProp.emKinManifesto:
            {
            }
            break;

            // 战队的每日公告
            case TKinProp.emKinNotice:
            {
                m_kinBaseData.szNotice = cmdDate.szText;
            }
            break;

            // 战队族长名字
            case TKinProp.emKinShaikhName:
            {
                m_kinBaseData.szShaikhName = cmdDate.szText;
            }
            break;

            // 宣传口号
            case TKinProp.emKinSlogan:
            {
            }
            break;

            default:
                break;
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_KIN_STRING_PROP_UPDATE, null);
        }
示例#2
0
        public void OnKinNumPropUpdate(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            GameLogic.cmd_kin_numprop_update cmdDate = helper.get <GameLogic.cmd_kin_numprop_update>();
            // 设置战队基本数据
            TKinProp nPropID = (TKinProp)cmdDate.nPropID;

            switch (nPropID)
            {
            // 战队长ID
            case TKinProp.emKinProp_ShaikhID:
            {
                m_kinBaseData.dwShaikhID = cmdDate.nValue;
            }
            break;

            default:
                break;
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_KIN_NUM_PROP_UPDATE, null);
        }