コード例 #1
0
 static partial void CustomBinaryEndImport(MutagenFrame frame, IDialogTopicInternal obj)
 {
     if (frame.Reader.Complete)
     {
         return;
     }
     if (!frame.TryGetGroup(out var groupMeta))
     {
         return;
     }
     if (groupMeta.GroupType == (int)GroupTypeEnum.TopicChildren)
     {
         obj.Timestamp = BinaryPrimitives.ReadInt32LittleEndian(groupMeta.LastModifiedData);
         if (FormKey.Factory(frame.MetaData.MasterReferences !, BinaryPrimitives.ReadUInt32LittleEndian(groupMeta.ContainedRecordTypeData)) != obj.FormKey)
         {
             throw new ArgumentException("Dialog children group did not match the FormID of the parent.");
         }
     }
     else
     {
         return;
     }
     frame.Reader.Position += groupMeta.HeaderLength;
     obj.Items.SetTo(Mutagen.Bethesda.Binary.ListBinaryTranslation <DialogItem> .Instance.Parse(
                         frame: frame.SpawnWithLength(groupMeta.ContentLength),
                         transl: (MutagenFrame r, RecordType header, out DialogItem listItem) =>
     {
         return(LoquiBinaryTranslation <DialogItem> .Instance.Parse(
                    frame: r,
                    item: out listItem));
     }));
 }
コード例 #2
0
ファイル: DialogTopic.cs プロジェクト: erri120/Mutagen
 public static partial void FillBinaryResponseCountCustom(MutagenFrame frame, IDialogTopicInternal item)
 {
     // Skip counter
     frame.ReadSubrecordFrame();
 }
コード例 #3
0
 public static partial ParseResult FillBinaryResponseCountCustom(MutagenFrame frame, IDialogTopicInternal item)
 {
     // Skip counter
     frame.ReadSubrecordFrame();
     return(null);
 }