1 #ifndef _RIVE_ANIMATION_BASE_HPP_
2 #define _RIVE_ANIMATION_BASE_HPP_
4 #include "core/field_types/core_string_type.hpp"
8 class AnimationBase : public Core
14 static const int typeKey = 27;
16 /// Helper to quickly determine if a core object extends another without
18 bool isTypeOf(int typeKey) const override
22 case AnimationBase::typeKey:
29 int coreType() const override { return typeKey; }
31 static const int namePropertyKey = 55;
34 std::string m_Name = "";
36 inline std::string name() const { return m_Name; }
37 void name(std::string value)
47 bool deserialize(int propertyKey, BinaryReader& reader) override
52 m_Name = CoreStringType::deserialize(reader);
59 virtual void nameChanged() {}