// Token: 0x060004F3 RID: 1267 RVA: 0x00013F18 File Offset: 0x00012118 public DisplayRuleGroup FindItemDisplayRuleGroup(string itemName) { for (int i = 0; i < this.namedItemRuleGroups.Length; i++) { ref ItemDisplayRuleSet.NamedRuleGroup ptr = ref this.namedItemRuleGroups[i]; if (ptr.name == itemName) { return(ptr.displayRuleGroup); } }
// Token: 0x060004F1 RID: 1265 RVA: 0x00013D7C File Offset: 0x00011F7C public void ConvertRuntimeValuesToSerializableValues() { List <ItemDisplayRuleSet.NamedRuleGroup> list = new List <ItemDisplayRuleSet.NamedRuleGroup>(); int i = 0; int num = Math.Min(this.runtimeItemRuleGroups.Length, 99); while (i < num) { if (this.runtimeItemRuleGroups[i].rules.Length != 0) { List <ItemDisplayRuleSet.NamedRuleGroup> list2 = list; ItemDisplayRuleSet.NamedRuleGroup item = default(ItemDisplayRuleSet.NamedRuleGroup); ItemIndex itemIndex = (ItemIndex)i; item.name = itemIndex.ToString(); item.displayRuleGroup = this.runtimeItemRuleGroups[i]; list2.Add(item); } i++; } List <ItemDisplayRuleSet.NamedRuleGroup> list3 = new List <ItemDisplayRuleSet.NamedRuleGroup>(); int j = 0; int num2 = Math.Min(this.runtimeEquipmentRuleGroups.Length, 34); while (j < num2) { if (this.runtimeEquipmentRuleGroups[j].rules.Length != 0) { List <ItemDisplayRuleSet.NamedRuleGroup> list4 = list3; ItemDisplayRuleSet.NamedRuleGroup item = default(ItemDisplayRuleSet.NamedRuleGroup); EquipmentIndex equipmentIndex = (EquipmentIndex)j; item.name = equipmentIndex.ToString(); item.displayRuleGroup = this.runtimeEquipmentRuleGroups[j]; list4.Add(item); } j++; } this.namedItemRuleGroups = list.ToArray(); this.namedEquipmentRuleGroups = list3.ToArray(); }