Пример #1
0
        public override void ApplyChanges(Patch patch)
        {
            var models = OutfitGen.GenerateModelList(IoC.Archiver.LoadGameFile);

            models.AddRange(CharacterGen.GetCharacterModels(true));

            Patcher.CreatePatch(patch, DefaultOutfits.ToList(), Outfits, models);
        }
Пример #2
0
        private IEnumerable <Model> LoadOutfitModelList()
        {
            IoC.Notif.ShowStatus("Loading models list...");
            var models = OutfitGen.GenerateModelList(IoC.Archiver.LoadGameFile);

            //sort models to match outfits
            var outfitSorting = Outfits.Select((x, i) => (x, i)).ToSoftDictionary(x => x.x.ModelId, x => x.i);

            return(models.OrderBy(x => outfitSorting.TryGetValue(x.Id, out var sort) ? sort : int.MaxValue));
        }