blob: f00ae4548906debd7fdb00cd5d42c46e5ddc348e [file] [log] [blame]
#ifndef _RIVE_STATE_MACHINE_IMPORTER_HPP_
#define _RIVE_STATE_MACHINE_IMPORTER_HPP_
#include "rive/importers/import_stack.hpp"
namespace rive
{
class StateMachineInput;
class StateMachineLayer;
class StateMachineListener;
class StateMachine;
class StateMachineImporter : public ImportStackObject
{
private:
StateMachine* m_StateMachine;
public:
StateMachineImporter(StateMachine* machine);
const StateMachine* stateMachine() const { return m_StateMachine; }
void addLayer(std::unique_ptr<StateMachineLayer>);
void addInput(std::unique_ptr<StateMachineInput>);
void addListener(std::unique_ptr<StateMachineListener>);
StatusCode resolve() override;
bool readNullObject() override;
};
} // namespace rive
#endif