0.604.0.6040508
This commit is contained in:
26
Tokens/SecurityCapabilities.cs
Normal file
26
Tokens/SecurityCapabilities.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using System.Xml;
|
||||
|
||||
namespace RobloxFiles.Tokens
|
||||
{
|
||||
public class SecurityCapabilitiesToken : IXmlPropertyToken
|
||||
{
|
||||
public string XmlPropertyToken => "SecurityCapabilities";
|
||||
|
||||
public bool ReadProperty(Property prop, XmlNode node)
|
||||
{
|
||||
if (ulong.TryParse(node.InnerText, out var value))
|
||||
{
|
||||
prop.Value = value;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void WriteProperty(Property prop, XmlDocument doc, XmlNode node)
|
||||
{
|
||||
var value = prop.CastValue<ulong>();
|
||||
node.InnerText = value.ToString();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user