Stage::UseInView::Loader::Loader(UseInView &u, Demo &d):
DataFile::DerivedObjectLoader<UseInView, Action::Loader>(u, d)
{
- add("view", &Loader::view);
add("stage", &Loader::stage);
+ add("view", &Loader::view);
}
-void Stage::UseInView::Loader::view(const string &n)
+void Stage::UseInView::Loader::stage(const string &n)
{
- obj.view = &demo.get_thing<GL::View>(n);
+ obj.stage = &demo.get_thing<Stage>(n);
}
-void Stage::UseInView::Loader::stage(const string &n)
+void Stage::UseInView::Loader::view(const string &n)
{
- obj.stage = &demo.get_thing<Stage>(n);
+ obj.view = &demo.get_thing<GL::View>(n);
}