public void RemodelColors(CharacterRecord record, int[] colors) { var dic = ContextActorLook.GetConvertedColorsWithIndex(colors); var col = ContextActorLook.GetConvertedColorSortedByIndex(dic); col = BreedRecord.VerifiyColors(col, record.Sex, BreedRecord.GetBreed(record.BreedId)).ToList(); record.Look.SetColors(ContextActorLook.GetConvertedColors(col)); }
public NpcRecord(ushort id, string name, CSVDoubleArray messages, CSVDoubleArray replies, List <sbyte> actionTypes, ContextActorLook look) { this.Id = id; this.Name = name; this.Messages = messages; this.Replies = replies; this.ActionTypes = actionTypes; this.ActionTypesEnum = actionTypes.ConvertAll <NpcActionTypeEnum>(x => (NpcActionTypeEnum)x); this.Look = look; this.Look.SetColors(ContextActorLook.GetConvertedColors(this.Look.Colors.ToArray())); }
public static ContextActorLook GetBreedLook(int breedid, bool sex, int cosmeticid, IEnumerable <int> colors) { var breed = GetBreed(breedid); ContextActorLook result = sex ? ContextActorLook.Parse(breed.FemaleLook) : ContextActorLook.Parse(breed.MaleLook); result.AddSkin(HeadRecord.GetSkin(cosmeticid)); int[] simpleColors = VerifiyColors(colors, sex, breed); result.SetColors(ContextActorLook.GetConvertedColors(simpleColors)); return(result); }