27 lines
659 B
C#
27 lines
659 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|