1 #ifndef _RIVE_TRANSITION_CONDITION_BASE_HPP_
2 #define _RIVE_TRANSITION_CONDITION_BASE_HPP_
4 #include "core/field_types/core_uint_type.hpp"
7 class TransitionConditionBase : public Core
13 static const uint16_t typeKey = 67;
15 /// Helper to quickly determine if a core object extends another without
17 bool isTypeOf(uint16_t typeKey) const override
21 case TransitionConditionBase::typeKey:
28 uint16_t coreType() const override { return typeKey; }
30 static const uint16_t inputIdPropertyKey = 155;
35 inline int inputId() const { return m_InputId; }
36 void inputId(int value)
38 if (m_InputId == value)
46 void copy(const TransitionConditionBase& object)
48 m_InputId = object.m_InputId;
51 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
55 case inputIdPropertyKey:
56 m_InputId = CoreUintType::deserialize(reader);
63 virtual void inputIdChanged() {}