blob: e73cb1cdcc4f067117813fe7c00ced567fa07cff [file] [log] [blame]
#ifndef _RIVE_LISTENER_ACTION_BASE_HPP_
#define _RIVE_LISTENER_ACTION_BASE_HPP_
#include "rive/core.hpp"
namespace rive {
class ListenerActionBase : public Core {
protected:
typedef Core Super;
public:
static const uint16_t typeKey = 125;
/// Helper to quickly determine if a core object extends another without RTTI
/// at runtime.
bool isTypeOf(uint16_t typeKey) const override {
switch (typeKey) {
case ListenerActionBase::typeKey:
return true;
default:
return false;
}
}
uint16_t coreType() const override { return typeKey; }
void copy(const ListenerActionBase& object) {}
bool deserialize(uint16_t propertyKey, BinaryReader& reader) override { return false; }
protected:
};
} // namespace rive
#endif