Ejemplo n.º 1
0
            static partial void FillBinaryFlagsCustom(MutagenFrame frame, IScriptFragments item)
            {
                var flag = (Flag)frame.ReadUInt8();

                item.FileName = Mutagen.Bethesda.Binary.StringBinaryTranslation.Instance.Parse(
                    frame: frame,
                    stringBinaryType: StringBinaryType.PrependLengthUShort);
                if (flag.HasFlag(Flag.OnBegin))
                {
                    item.OnBegin = ScriptFragment.CreateFromBinary(frame);
                }
                if (flag.HasFlag(Flag.OnEnd))
                {
                    item.OnEnd = ScriptFragment.CreateFromBinary(frame);
                }
            }
Ejemplo n.º 2
0
            public static partial void FillBinaryFlagsCustom(MutagenFrame frame, IScriptFragments item)
            {
                var flag = (Flag)frame.ReadUInt8();

                item.FileName = StringBinaryTranslation.Instance.Parse(
                    reader: frame,
                    stringBinaryType: StringBinaryType.PrependLengthUShort,
                    encoding: frame.MetaData.Encodings.NonTranslated);
                if (flag.HasFlag(Flag.OnBegin))
                {
                    item.OnBegin = ScriptFragment.CreateFromBinary(frame);
                }
                if (flag.HasFlag(Flag.OnEnd))
                {
                    item.OnEnd = ScriptFragment.CreateFromBinary(frame);
                }
            }