Deathdisguise
Community Developer
- Joined
- Mar 7, 2015
- Messages
- 678
As of today's BETA update onwards, there's two new methods developers need to override and implement if they wish to make their tags work again!
Below is a basic sample implementation:
Apoc included extensions to make it nice and easy, and you'll find more definitions/information in your object browsers!
Below is a basic sample implementation:
Code:
public override XElement Save()
{
XElement x = base.Save();
x.SaveAttribute("X", X, -1);
x.SaveAttribute("Y", Y, -1);
x.SaveAttribute("Z", Z, -1);
return x;
}
public override bool Load(XElement element)
{
if (element.Name != ElementName)
return false;
if (!base.Load(element))
return false;
X = element.LoadAttribute<float>("X", -1);
Y = element.LoadAttribute<float>("Y", -1);
Z = element.LoadAttribute<float>("Z", -1);
return true
}
Apoc included extensions to make it nice and easy, and you'll find more definitions/information in your object browsers!
Last edited: