public ContextActorLook GetMountLook(ContextActorLook mountLook) { ContextActorLook newLook = mountLook.Clone(); newLook.Colors = GetConvertedColors(mountLook.Colors.ToArray()).ToList(); ContextSubEntity actorSub = new ContextSubEntity(SubEntityBindingPointCategoryEnum.HOOK_POINT_CATEGORY_MOUNT_DRIVER, 0, new ContextActorLook(2, this.Skins, this.Colors, this.Scales, this.SubEntities)); newLook.SubEntities.Add(actorSub); return(newLook); }
public override bool Equals(object obj) { ContextSubEntity subEntity = obj as ContextSubEntity; if (subEntity == null) { return(false); } else { return(subEntity.BindingPointIndex == this.BindingPointIndex && subEntity.Category == this.Category && subEntity.SubActorLook == this.SubActorLook); } }