#include "stage.h"
using namespace std;
-using namespace Msp;
+
+namespace Msp {
+namespace DemoScene {
Demo::Demo(Graphics::Window &window, Graphics::GLContext &gl_ctx, DataFile::Collection &r):
resources(r),
void Demo::add_stage(const std::string &name, Stage &stage)
{
things[name] = &stage;
- stage.add_things(things, name+".");
+ string prefix = name+".";
+ stage.add_things(things, prefix);
+ stage.define_actions(sequencer, prefix);
}
void Demo::set_fixed_framerate(float fps)
{
player.tick(d*Time::sec);
}
+
+} // namespace DemoScene
+} // namespace Msp