public override dynamic ConvertLabel(GroupRecord group, byte[] label) { return(FormId.FromSource( group.file, BitConverter.ToUInt32(label) )); }
internal void UpdateContainedIn(GroupRecord group, MainRecord rec) { if (group == null || !group.hasRecordParent) { return; } var parentRec = group.GetParentRecord(); var containedInDef = parentRec.mrDef.containedInDef; if (containedInDef == null) { return; } var element = (ValueElement)rec.FindElementForDef(containedInDef); element._data = FormId.FromSource(parentRec._file, parentRec.fileFormId); }
internal UInt32?GetGlobalFormId(PluginFile file, UInt32 fileFormId) { var formId = FormId.FromSource(file, fileFormId); return(formId.globalFormId); }
public override dynamic ReadData(PluginFileSource source, UInt32?dataSize) { UInt32 data = source.reader.ReadUInt32(); return(FormId.FromSource(source.plugin, data)); }