mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
YamlScalarNode constructor for Utf8String
This commit is contained in:
parent
0b0ceda1a6
commit
cc2e1b4ab5
@ -6,4 +6,8 @@
|
||||
<IntermediateOutputPath>..\Bins\obj\AssetRipper.Yaml\$(Configuration)\</IntermediateOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AssetRipper.Primitives\AssetRipper.Primitives.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user