Scripting API
Scripting API
BakedModel
Class in Abyss.Core, from Abyss.Core.
What a baker made of a model's meshes, as a file of the cache and an entry of a pack keep it: each mesh's bytes by its label, as the baker gave them.
public static class BakedModelRemarks
Little-endian: ABKD, the version, how many meshes, then each mesh's label — its length in bytes and its UTF-8 — and its bytes, their length first.
Methods
Write
public static byte[] Write(IReadOnlyList<(string Label, byte[] Bytes)> meshes)The file or entry of meshes, each a label and its bytes.
Parameters
meshes
Read
public static IReadOnlyDictionary<string, byte[]>? Read(ReadOnlySpan<byte> bytes)Each mesh's bytes by its label; null for bytes that are not one this build reads.
Parameters
bytes
Constants
Version
public const uint Version = 1The version this build writes and reads.
