typedef CubicVertex Super;
public:
- static const int typeKey = 35;
+ static const uint16_t typeKey = 35;
/// 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 = 82;
- static const int distancePropertyKey = 83;
+ static const uint16_t rotationPropertyKey = 82;
+ static const uint16_t distancePropertyKey = 83;
private:
- float m_Rotation = 0;
- float m_Distance = 0;
+ float m_Rotation = 0.0f;
+ float m_Distance = 0.0f;
public:
inline float rotation() const { return m_Rotation; }
void rotation(float value)
distanceChanged();
}
- bool deserialize(int propertyKey, BinaryReader& reader) override
+ Core* clone() const override;
+ void copy(const CubicMirroredVertexBase& object)
+ {
+ m_Rotation = object.m_Rotation;
+ m_Distance = object.m_Distance;
+ CubicVertex::copy(object);
+ }
+
+ bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
{
switch (propertyKey)
{