2019-05-17 12:08:06 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Text;
|
2019-05-17 06:14:04 +00:00
|
|
|
|
using System.Xml;
|
|
|
|
|
|
|
|
|
|
namespace RobloxFiles.XmlFormat.PropertyTokens
|
|
|
|
|
{
|
|
|
|
|
public class SharedStringToken : IXmlPropertyToken
|
|
|
|
|
{
|
|
|
|
|
public string Token => "SharedString";
|
|
|
|
|
|
2019-05-17 12:08:06 +00:00
|
|
|
|
public bool ReadProperty(Property prop, XmlNode token)
|
2019-05-17 06:14:04 +00:00
|
|
|
|
{
|
|
|
|
|
string contents = token.InnerText;
|
|
|
|
|
prop.Type = PropertyType.SharedString;
|
|
|
|
|
prop.Value = contents;
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2019-05-17 12:08:06 +00:00
|
|
|
|
|
|
|
|
|
public void WriteProperty(Property prop, XmlDocument doc, XmlNode node)
|
|
|
|
|
{
|
|
|
|
|
var BinaryStringToken = XmlPropertyTokens.GetHandler<BinaryStringToken>();
|
|
|
|
|
BinaryStringToken.WriteProperty(prop, doc, node);
|
|
|
|
|
}
|
2019-05-17 06:14:04 +00:00
|
|
|
|
}
|
|
|
|
|
}
|