typedef TransformComponent Super;
public:
- static const int typeKey = 2;
+ static const uint16_t typeKey = 2;
/// 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 xPropertyKey = 13;
- static const int yPropertyKey = 14;
+ static const uint16_t xPropertyKey = 13;
+ static const uint16_t yPropertyKey = 14;
private:
- float m_X = 0;
- float m_Y = 0;
+ float m_X = 0.0f;
+ float m_Y = 0.0f;
public:
inline float x() const override { return m_X; }
void x(float value)
yChanged();
}
- bool deserialize(int propertyKey, BinaryReader& reader) override
+ bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
{
switch (propertyKey)
{