1 #ifndef _RIVE_BLEND_STATE1_DBASE_HPP_
2 #define _RIVE_BLEND_STATE1_DBASE_HPP_
3 #include "animation/blend_state.hpp"
4 #include "core/field_types/core_uint_type.hpp"
7 class BlendState1DBase : public BlendState
10 typedef BlendState Super;
13 static const uint16_t typeKey = 76;
15 /// Helper to quickly determine if a core object extends another without
17 bool isTypeOf(uint16_t typeKey) const override
21 case BlendState1DBase::typeKey:
22 case BlendStateBase::typeKey:
23 case LayerStateBase::typeKey:
24 case StateMachineLayerComponentBase::typeKey:
31 uint16_t coreType() const override { return typeKey; }
33 static const uint16_t inputIdPropertyKey = 167;
38 inline int inputId() const { return m_InputId; }
39 void inputId(int value)
41 if (m_InputId == value)
49 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
53 case inputIdPropertyKey:
54 m_InputId = CoreUintType::deserialize(reader);
57 return BlendState::deserialize(propertyKey, reader);
61 virtual void inputIdChanged() {}