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(); } }
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(); } }