示例#1
0
        private void immunitiesWeapon(IntPtr intPtr)
        {
            var list  = new CPtrList(intPtr);
            var count = list.Count;

            if (count > 100)
            {
                return;
            }
            var node = list.Head;

            for (int i = 0; i < count; ++i)
            {
                this.WeaponImmune.Add(new CWeaponIdentification(node.Data));

                node = node.getNext();
            }
        }
示例#2
0
        private void immunitiesEffect(IntPtr intPtr)
        {
            var list  = new CPtrList(intPtr);
            var count = list.Count;

            if (count > 100)
            {
                return;
            }
            var node = list.Head;

            for (int i = 0; i < count; ++i)
            {
                this.EffectImmunes.Add(new CGameEffect(node.Data));

                node = node.getNext();
            }
        }