]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/action.cpp
Add a builtin resource collection for storing necessary data
[libs/demoscene.git] / source / action.cpp
index f67bb28b517b136670e9d3e6fbd4a57786328424..de3b08a1e3c1bde940a3bc36632ccba359d25b6f 100644 (file)
@@ -1,5 +1,8 @@
 #include "action.h"
 
+namespace Msp {
+namespace DemoScene {
+
 InterpolationAction::InterpolationAction(Mode m):
        mode(m),
        start_beat(0),
@@ -35,3 +38,12 @@ void InterpolationAction::end(float)
 {
        interpolate(1.0f, 0.0f);
 }
+
+
+Action::Loader::Loader(Action &a, Demo &d):
+       DataFile::ObjectLoader<Action>(a),
+       demo(d)
+{ }
+
+} // namespace DemoScene
+} // namespace Msp