Beispiel #1
0
        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));
        }
Beispiel #2
0
 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()));
 }
Beispiel #3
0
        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);
        }