blob: c78f9f19e5c9a11f14e8d7a9c003492e9078193d [file] [log] [blame]
#ifndef _RIVE_STATE_MACHINE_INPUT_BASE_HPP_
#define _RIVE_STATE_MACHINE_INPUT_BASE_HPP_
#include "rive/animation/state_machine_component.hpp"
namespace rive
{
class StateMachineInputBase : public StateMachineComponent
{
protected:
typedef StateMachineComponent Super;
public:
static const uint16_t typeKey = 55;
/// Helper to quickly determine if a core object extends another without RTTI
/// at runtime.
bool isTypeOf(uint16_t typeKey) const override
{
switch (typeKey)
{
case StateMachineInputBase::typeKey:
case StateMachineComponentBase::typeKey:
return true;
default:
return false;
}
}
uint16_t coreType() const override { return typeKey; }
protected:
};
} // namespace rive
#endif