| #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 StateMachineEvent; | |
| 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 addEvent(std::unique_ptr<StateMachineEvent>); | |
| StatusCode resolve() override; | |
| bool readNullObject() override; | |
| }; | |
| } // namespace rive | |
| #endif |