typedef CubicVertex Super;
public:
- static const int typeKey = 34;
+ static const uint16_t typeKey = 34;
/// Helper to quickly determine if a core object extends another without
/// RTTI at runtime.
- bool isTypeOf(int typeKey) const override
+ bool isTypeOf(uint16_t typeKey) const override
{
switch (typeKey)
{
}
}
- int coreType() const override { return typeKey; }
+ uint16_t coreType() const override { return typeKey; }
- static const int rotationPropertyKey = 79;
- static const int inDistancePropertyKey = 80;
- static const int outDistancePropertyKey = 81;
+ static const uint16_t rotationPropertyKey = 79;
+ static const uint16_t inDistancePropertyKey = 80;
+ static const uint16_t outDistancePropertyKey = 81;
private:
- float m_Rotation = 0;
- float m_InDistance = 0;
- float m_OutDistance = 0;
+ float m_Rotation = 0.0f;
+ float m_InDistance = 0.0f;
+ float m_OutDistance = 0.0f;
public:
inline float rotation() const { return m_Rotation; }
void rotation(float value)
outDistanceChanged();
}
- bool deserialize(int propertyKey, BinaryReader& reader) override
+ Core* clone() const override;
+ void copy(const CubicAsymmetricVertexBase& object)
+ {
+ m_Rotation = object.m_Rotation;
+ m_InDistance = object.m_InDistance;
+ m_OutDistance = object.m_OutDistance;
+ CubicVertex::copy(object);
+ }
+
+ bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
{
switch (propertyKey)
{