mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
* Export MonoBehaviour byte arrays as scalars rather than sequences * Do not serialize yaml scalars, especially not for byte arrays * Eliminate unnecessary state for yaml scalars * Create a new type hierarchy for yaml scalars * Implement hexidecimal emission of floating point scalars * Implement hexidecimal emission of numeric lists * Resolves #1422 * Resolves #1409 * Resolves #1381 * Related to #927 * Related to #695
15 lines
312 B
C#
15 lines
312 B
C#
namespace AssetRipper.Yaml;
|
|
|
|
public abstract partial class YamlScalarNode
|
|
{
|
|
private sealed class BooleanNode(bool value) : YamlScalarNode
|
|
{
|
|
private protected override void EmitCore(Emitter emitter)
|
|
{
|
|
emitter.Write(value ? 1 : 0);
|
|
}
|
|
|
|
public override string Value => value ? "true" : "false";
|
|
}
|
|
}
|