Basic material serialisation

This commit is contained in:
Simon Lübeß
2023-03-05 16:38:50 +01:00
parent 2324ae852d
commit 2ce357cd12
13 changed files with 772 additions and 373 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ namespace GlitchyEngine.World
String buffer = scope String();
let writer = scope BonWriter(buffer, true);
Serialize.Start(writer);
var length = Serialize.Start(writer);
gBonEnv.serializeFlags |= .IncludeDefault | .Verbose;
@@ -61,7 +61,7 @@ namespace GlitchyEngine.World
writer.EntryEnd();
}
Serialize.End(writer);
Serialize.End(writer, length);
String targetDirectory = Path.GetDirectoryPath(filePath, .. scope String());
Directory.CreateDirectory(targetDirectory);