Beispiel #1
0
        private static void ExtendedCardLoad(ChaFile file)
        {
            UniversalAutoResolver.ResolveStructure(StructReference.ChaFileFaceProperties, file.custom.face, file);
            UniversalAutoResolver.ResolveStructure(StructReference.ChaFileBodyProperties, file.custom.body, file);
            UniversalAutoResolver.ResolveStructure(StructReference.ChaFileHairProperties, file.custom.hair, file);

            for (int i = 0; i < file.coordinate.Length; i++)
            {
                var    coordinate = file.coordinate[i];
                string prefix     = $"outfit{i}.";

                UniversalAutoResolver.ResolveStructure(StructReference.ChaFileClothesProperties, coordinate.clothes, file, prefix);
                UniversalAutoResolver.ResolveStructure(StructReference.ChaFileMakeupProperties, coordinate.makeup, file, prefix);

                for (int acc = 0; acc < coordinate.accessory.parts.Length; acc++)
                {
                    string accPrefix = $"{prefix}accessory{acc}.";

                    UniversalAutoResolver.ResolveStructure(StructReference.ChaFileAccessoryPartsInfoProperties, coordinate.accessory.parts[acc], file, accPrefix);
                }
            }
        }
Beispiel #2
0
 private static void ExtendedCardLoad(ChaFile file)
 {
     UniversalAutoResolver.ResolveStructure(StructReference.ChaFileFaceProperties, lastLoadedInstance.face, file);
     UniversalAutoResolver.ResolveStructure(StructReference.ChaFileBodyProperties, lastLoadedInstance.body, file);
     UniversalAutoResolver.ResolveStructure(StructReference.ChaFileHairProperties, lastLoadedInstance.hair, file);
 }