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