X-Git-Url: http://git.tdb.fi/?p=libs%2Fdemoscene.git;a=blobdiff_plain;f=source%2Fsequencer.cpp;fp=source%2Fsequencer.cpp;h=6a0ab2ef7f655d46109f8252ec4bfae1376908ba;hp=25182b8ef6ee7f4e623b83cfc942f8fe17339e86;hb=eab0e547df149ba6972ee2a2b3435e37a4fc0a0c;hpb=7bf392aeb264c6f700e9df8d13a83c8c5da26fc7 diff --git a/source/sequencer.cpp b/source/sequencer.cpp index 25182b8..6a0ab2e 100644 --- a/source/sequencer.cpp +++ b/source/sequencer.cpp @@ -25,6 +25,11 @@ Sequencer::Sequencer(float bpm): register_action_type("set_camera"); } +void Sequencer::define_action(const string &name, Action &act) +{ + named_actions[name] = &act; +} + void Sequencer::set_beats_per_minute(float bpm) { secs_per_beat = Time::min/bpm;