diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/MidiAction.cpp | 13 | ||||
-rw-r--r-- | src/engine/machina/MidiAction.hpp | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/engine/MidiAction.cpp b/src/engine/MidiAction.cpp index b1dfa95..ab73fd3 100644 --- a/src/engine/MidiAction.cpp +++ b/src/engine/MidiAction.cpp @@ -105,6 +105,19 @@ MidiAction::execute(Raul::BeatTime time) } +void +MidiAction::write_state(Raul::RDFWriter& writer) +{ + using Raul::RdfId; + + Action::write_state(writer); + + writer.write(_id, + RdfId(RdfId::RESOURCE, "rdf:type"), + RdfId(RdfId::RESOURCE, "machina:MidiAction")); +} + + } // namespace Machina diff --git a/src/engine/machina/MidiAction.hpp b/src/engine/machina/MidiAction.hpp index 6467659..b62d841 100644 --- a/src/engine/machina/MidiAction.hpp +++ b/src/engine/machina/MidiAction.hpp @@ -48,6 +48,8 @@ public: bool set_event(size_t size, const byte* event); void execute(Raul::BeatTime time); + + virtual void write_state(Raul::RDFWriter& writer); private: MidiAction(size_t size, |