YamlScalarNode constructor for Utf8String

This commit is contained in:
Jeremy Pritts 2023-06-11 11:30:49 -04:00
parent 0b0ceda1a6
commit cc2e1b4ab5
2 changed files with 9 additions and 0 deletions

View File

@ -6,4 +6,8 @@
<IntermediateOutputPath>..\Bins\obj\AssetRipper.Yaml\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\AssetRipper.Primitives\AssetRipper.Primitives.csproj" />
</ItemGroup>
</Project>

View File

@ -1,4 +1,5 @@
//#define USE_HEX_FLOAT
using AssetRipper.Primitives;
using AssetRipper.Yaml.Extensions;
using System.Globalization;
using System.Text.RegularExpressions;
@ -109,6 +110,10 @@ namespace AssetRipper.Yaml
Style = ScalarStyle.Plain;
}
public YamlScalarNode(Utf8String value) : this(value.String)
{
}
public void SetValue(bool value)
{
m_value = value ? 1u : 0u;