/// <summary> /// Gets a list of combined dynamic appearances /// </summary> /// <param name="our">Our slime definition</param> /// <param name="other">The dynamic appearances to combine with</param> public static List <SlimeAppearance> GetCombinedAppearancesDynamic(this SlimeDefinition our, List <SlimeAppearance> other) { List <SlimeAppearance> apps = new List <SlimeAppearance>(); for (int i = 0; i < our.AppearancesDynamic.Count; i++) { if (other.Count >= i) { break; } apps.Add(SlimeAppearance.CombineAppearances(our.AppearancesDynamic[i], other[i])); } return(apps); }
/// <summary> /// Gets a list of combined default appearances /// </summary> /// <param name="our">Our slime definition</param> /// <param name="other">The default appearances to combine with</param> public static SlimeAppearance[] GetCombinedAppearancesDefault(this SlimeDefinition our, SlimeAppearance[] other) { List <SlimeAppearance> apps = new List <SlimeAppearance>(); for (int i = 0; i < our.AppearancesDefault.Length; i++) { if (other.Length >= i) { break; } apps.Add(SlimeAppearance.CombineAppearances(our.AppearancesDefault[i], other[i])); } return(apps.ToArray()); }