Translations:Modding:Chunk Moddata/4/en
From Vintage Story Wiki
Custom data is stored as an array of bytes to save space, but we can easily convert any valid C# type to byte[]
with a very convenient class in the VintageStory API: SerializerUtil
. This class provides us with two static methods that allow us to quickly Serialize
into byte arrays, and Deserialize<T>
them into other types.