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 AxesToken : IXmlPropertyToken
|
|
|
|
|
{
|
|
|
|
|
public string Token => "Axes";
|
|
|
|
|
|
|
|
|
|
public bool ReadToken(Property prop, XmlNode token)
|
|
|
|
|
{
|
|
|
|
|
bool success = XmlPropertyTokens.ReadTokenGeneric<uint>(prop, PropertyType.Axes, token);
|
|
|
|
|
|
|
|
|
|
if (success)
|
|
|
|
|
{
|
|
|
|
|
uint value = (uint)prop.Value;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Axes axes = (Axes)value;
|
|
|
|
|
prop.Value = axes;
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
success = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|