Beispiel #1
0
    // 保存召唤师技能信息
    public void saveAllSummonerSkill(IntPtr ptrParam, int nPtrLen)
    {
        IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
        cmd_count cmdCount            = helper.get <cmd_count>();

        for (int i = 0; i < cmdCount.nCount; ++i)
        {
            cmd_SmAllSkillInfo cmdInfo = helper.get <cmd_SmAllSkillInfo>();
            SmAllSkillInfoList.Insert(i, cmdInfo);
        }
    }
Beispiel #2
0
    // 获得所有召唤师技能信息,调用as,设置12个召唤师技能的点亮使能和图片id
    public void setAllSummonerSkill()
    {
        int nCount = SmAllSkillInfoList.Count;

        for (int i = 0; i < nCount; ++i)
        {
            cmd_SmAllSkillInfo cmdInfo = SmAllSkillInfoList[i];
            bool bIsLock = cmdInfo.nIsUnlock == 1 ? true : false;
            if (Value.IsValueValid(vPopUpWindow))
            {
                if (vPopUpWindow.Invoke("SetChooseSummonerBtnClick", bIsLock, cmdInfo.nIconId, cmdInfo.summonerSkillDesc, cmdInfo.nId) == null)
                {
                    Trace.LogError("call SetChooseSummonerBtnClick failed");
                    return;
                }
            }
        }
    }