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