Ejemplo n.º 1
0
        public void OnRecvSetAutoAcceptFlag(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            GameLogic.cmd_clan_set_autoacceptflag cmdData = helper.get <GameLogic.cmd_clan_set_autoacceptflag>();
            m_clanBaseData.nAutoAcceptFlag = cmdData.nAutoAcceptFlag;
        }
Ejemplo n.º 2
0
        public void OnAutoJoinSetClick(bool bIsOn)
        {
            if (EntityFactory.MainHeroView == null)
            {
                return;
            }

            int selfID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID);

            if (selfID != LogicDataCenter.clanDataManager.ClanBaseData.nShaikhID)
            {
                return;
            }

            GameLogic.cmd_clan_set_autoacceptflag cmdData = new GameLogic.cmd_clan_set_autoacceptflag();

            cmdData.nAutoAcceptFlag = (autoJoinSet.isOn ? 1 : 0);

            ViewEventHelper.Instance.SendCommand <cmd_clan_set_autoacceptflag>(GameLogicDef.GVIEWCMD_CLAN_SET_AUTOACCEPT, ref cmdData);
            UIUtil.ShowSystemMessage(EMChatTipID.CHAT_TIP_CLAN_MODIFY_ENROLL_STUDENT);
        }