2019-01-30 06:36:56 +00:00
|
|
|
|
using System.Xml;
|
2019-02-01 17:19:20 +00:00
|
|
|
|
using RobloxFiles.DataTypes;
|
2019-01-30 06:36:56 +00:00
|
|
|
|
|
2019-02-01 17:19:20 +00:00
|
|
|
|
namespace RobloxFiles.XmlFormat.PropertyTokens
|
2019-01-30 06:36:56 +00:00
|
|
|
|
{
|
|
|
|
|
public class FacesToken : IXmlPropertyToken
|
|
|
|
|
{
|
|
|
|
|
public string Token => "Faces";
|
|
|
|
|
|
|
|
|
|
public bool ReadToken(Property prop, XmlNode token)
|
|
|
|
|
{
|
|
|
|
|
bool success = XmlPropertyTokens.ReadTokenGeneric<uint>(prop, PropertyType.Faces, token);
|
|
|
|
|
|
|
|
|
|
if (success)
|
|
|
|
|
{
|
|
|
|
|
uint value = (uint)prop.Value;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Faces faces = (Faces)value;
|
|
|
|
|
prop.Value = faces;
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
success = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|