// Token: 0x06002F7B RID: 12155 RVA: 0x000B6D34 File Offset: 0x000B4F34 public global::ArmorModelSlotMask BindArmorGroup(global::ArmorModelGroup group) { global::ArmorModelSlotMask armorModelSlotMask = (global::ArmorModelSlotMask)0; if (group) { for (global::ArmorModelSlot armorModelSlot = global::ArmorModelSlot.Feet; armorModelSlot < (global::ArmorModelSlot)4; armorModelSlot += 1) { global::ArmorModel armorModel = group[armorModelSlot]; if (armorModel && this.BindArmorModelCheckedNonNull(armorModel)) { armorModelSlotMask |= armorModelSlot.ToMask(); } } } return(armorModelSlotMask); }
// Token: 0x06002F78 RID: 12152 RVA: 0x000B6C00 File Offset: 0x000B4E00 public global::ArmorModelSlotMask BindArmorModels(global::ArmorModelMemberMap map) { if (!this.awake) { return(this.Initialize(map, global::ArmorModelSlotMask.Feet | global::ArmorModelSlotMask.Legs | global::ArmorModelSlotMask.Torso | global::ArmorModelSlotMask.Head)); } global::ArmorModelSlotMask armorModelSlotMask = (global::ArmorModelSlotMask)0; for (global::ArmorModelSlot armorModelSlot = global::ArmorModelSlot.Feet; armorModelSlot < (global::ArmorModelSlot)4; armorModelSlot += 1) { if (this.BindArmorModel(map[armorModelSlot], armorModelSlot)) { armorModelSlotMask |= armorModelSlot.ToMask(); } } return(armorModelSlotMask); }
// Token: 0x06002F80 RID: 12160 RVA: 0x000B6ED8 File Offset: 0x000B50D8 private global::ArmorModelSlotMask Initialize(global::ArmorModelMemberMap memberMap, global::ArmorModelSlotMask memberMask) { this.awake = true; string rendererName = global::ArmorModelSlot.Head.GetRendererName(); ActorRig actorRig = this.defaultArmorModelGroup[global::ArmorModelSlot.Head].actorRig; ActorMeshRenderer actorMeshRenderer; if (this.originalRenderer) { actorMeshRenderer = ActorMeshRenderer.Replace(this.originalRenderer, actorRig, this.boneStructure.rigOrderedTransformArray, rendererName); } else { actorMeshRenderer = ActorMeshRenderer.CreateOn(base.transform, rendererName, actorRig, this.boneStructure.rigOrderedTransformArray, base.gameObject.layer); } this.renderers[global::ArmorModelSlot.Head] = actorMeshRenderer; for (global::ArmorModelSlot armorModelSlot = global::ArmorModelSlot.Feet; armorModelSlot < global::ArmorModelSlot.Head; armorModelSlot += 1) { this.renderers[armorModelSlot] = actorMeshRenderer.CloneBlank(armorModelSlot.GetRendererName()); } for (global::ArmorModelSlot armorModelSlot2 = global::ArmorModelSlot.Feet; armorModelSlot2 < global::ArmorModelSlot.Head; armorModelSlot2 += 1) { ActorMeshRenderer actorMeshRenderer2 = this.renderers[armorModelSlot2]; if (actorMeshRenderer2) { actorMeshRenderer2.renderer.enabled = base.enabled; } } global::ArmorModelSlotMask armorModelSlotMask = (global::ArmorModelSlotMask)0; global::ArmorModelGroup defaultArmorModelGroup = this.defaultArmorModelGroup; if (defaultArmorModelGroup) { global::ArmorModelSlot armorModelSlot3 = global::ArmorModelSlot.Feet; while (armorModelSlot3 < (global::ArmorModelSlot)4) { if (!memberMask.Contains(armorModelSlot3)) { goto IL_14D; } global::ArmorModel armorModel = memberMap.GetArmorModel(armorModelSlot3); if (!armorModel || !this.BindArmorModelCheckedNonNull(armorModel)) { goto IL_14D; } armorModelSlotMask |= armorModelSlot3.ToMask(); IL_16D: armorModelSlot3 += 1; continue; IL_14D: global::ArmorModel armorModel2 = defaultArmorModelGroup[armorModelSlot3]; if (armorModel2) { this.BindArmorModelCheckedNonNull(armorModel2); goto IL_16D; } goto IL_16D; } } else { foreach (global::ArmorModelSlot slot in memberMask.EnumerateSlots()) { global::ArmorModel armorModel3 = memberMap.GetArmorModel(slot); if (armorModel3 && this.BindArmorModelCheckedNonNull(armorModel3)) { armorModelSlotMask |= slot.ToMask(); } } } return(armorModelSlotMask); }