Пример #1
0
            public static IBodyTemplateGetter?CustomFactory(OverlayStream stream, BinaryOverlayFactoryPackage package)
            {
                var subFrame = stream.ReadSubrecord();
                var version  = package.FormVersion !.FormVersion !.Value;

                switch (subFrame.RecordTypeInt)
                {
                case RecordTypeInts.BODT:
                    return(BodyTemplateBinaryCreateTranslation.ParseBodt(version, stream, subFrame));

                case RecordTypeInts.BOD2:
                    return(BodyTemplateBinaryCreateTranslation.ParseBod2(version, stream, subFrame));

                default:
                    throw new ArgumentException();
                }
            }
Пример #2
0
 static partial void FillBinaryBodyTemplateCustom(MutagenFrame frame, IArmorAddonInternal item)
 {
     item.BodyTemplate = BodyTemplateBinaryCreateTranslation.Parse(frame);
 }