typedef Polygon Super;
public:
- static const int typeKey = 52;
+ static const uint16_t typeKey = 52;
/// 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 innerRadiusPropertyKey = 127;
+ static const uint16_t innerRadiusPropertyKey = 127;
private:
- float m_InnerRadius = 0.5;
-
+ float m_InnerRadius = 0.5f;
public:
inline float innerRadius() const { return m_InnerRadius; }
void innerRadius(float value)
innerRadiusChanged();
}
- bool deserialize(int propertyKey, BinaryReader& reader) override
+ Core* clone() const override;
+ void copy(const StarBase& object)
+ {
+ m_InnerRadius = object.m_InnerRadius;
+ Polygon::copy(object);
+ }
+
+ bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
{
switch (propertyKey)
{