// Token: 0x060004FF RID: 1279 RVA: 0x00014280 File Offset: 0x00012480 public void AddDisplayRule(ItemDisplayRule itemDisplayRule) { if (this.rules == null) { this.rules = Array.Empty <ItemDisplayRule>(); } HGArrayUtilities.ArrayAppend <ItemDisplayRule>(ref this.rules, ref itemDisplayRule); }
// Token: 0x06000AAD RID: 2733 RVA: 0x00034C88 File Offset: 0x00032E88 public void AddDisplayRule(ItemDisplayRule itemDisplayRule) { int num = ((this.rules != null) ? this.rules.Length : 0) + 1; ItemDisplayRule[] array = new ItemDisplayRule[num]; if (num != 0 && this.rules != null) { this.rules.CopyTo(array, 0); } array[num - 1] = itemDisplayRule; this.rules = array; }
// Token: 0x06000D27 RID: 3367 RVA: 0x000417F4 File Offset: 0x0003F9F4 private void InstantiateDisplayRuleGroup(DisplayRuleGroup displayRuleGroup, ItemIndex itemIndex, EquipmentIndex equipmentIndex) { if (displayRuleGroup.rules != null) { for (int i = 0; i < displayRuleGroup.rules.Length; i++) { ItemDisplayRule itemDisplayRule = displayRuleGroup.rules[i]; ItemDisplayRuleType ruleType = itemDisplayRule.ruleType; if (ruleType != ItemDisplayRuleType.ParentedPrefab) { if (ruleType == ItemDisplayRuleType.LimbMask) { CharacterModel.LimbMaskDisplay item = new CharacterModel.LimbMaskDisplay { itemIndex = itemIndex, equipmentIndex = equipmentIndex }; item.Apply(this, itemDisplayRule.limbMask); this.limbMaskDisplays.Add(item); } } else if (this.childLocator) { Transform transform = this.childLocator.FindChild(itemDisplayRule.childName); if (transform) { CharacterModel.ParentedPrefabDisplay item2 = new CharacterModel.ParentedPrefabDisplay { itemIndex = itemIndex, equipmentIndex = equipmentIndex }; item2.Apply(this, itemDisplayRule.followerPrefab, transform, itemDisplayRule.localPos, Quaternion.Euler(itemDisplayRule.localAngles), itemDisplayRule.localScale); this.parentedPrefabDisplays.Add(item2); } } } } }