mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 06:45:11 +00:00
Finalize property conversion for header
This commit is contained in:
@@ -23,7 +23,7 @@ namespace SabreTools.Serialization.CrossModel
|
||||
{
|
||||
datafile.Build = header.Build;
|
||||
datafile.Debug = header.Debug;
|
||||
datafile.SchemaLocation = header.ReadString(Data.Models.Metadata.Header.SchemaLocationKey);
|
||||
datafile.SchemaLocation = header.SchemaLocation;
|
||||
datafile.Header = ConvertHeaderFromInternalModel(header);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace SabreTools.Serialization.CrossModel
|
||||
|
||||
header.Build = item.Build;
|
||||
header.Debug = item.Debug;
|
||||
header[Data.Models.Metadata.Header.SchemaLocationKey] = item.SchemaLocation;
|
||||
header.SchemaLocation = item.SchemaLocation;
|
||||
|
||||
return header;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace SabreTools.Serialization.CrossModel
|
||||
{
|
||||
var dat = new Dat
|
||||
{
|
||||
NoNamespaceSchemaLocation = item.ReadString(Data.Models.Metadata.Header.SchemaLocationKey),
|
||||
NoNamespaceSchemaLocation = item.SchemaLocation,
|
||||
};
|
||||
|
||||
if (item.Name is not null
|
||||
|
||||
@@ -32,12 +32,12 @@ namespace SabreTools.Serialization.CrossModel
|
||||
{
|
||||
var header = new Data.Models.Metadata.Header
|
||||
{
|
||||
[Data.Models.Metadata.Header.SchemaLocationKey] = item.NoNamespaceSchemaLocation,
|
||||
SchemaLocation = item.NoNamespaceSchemaLocation,
|
||||
};
|
||||
|
||||
if (item.Configuration is not null)
|
||||
{
|
||||
header.Name = item.Configuration.DatName;
|
||||
header.Name = item.Configuration.DatName;
|
||||
header.ImFolder = item.Configuration.ImFolder;
|
||||
header.DatVersion = item.Configuration.DatVersion;
|
||||
header.System = item.Configuration.System;
|
||||
|
||||
Reference in New Issue
Block a user