metaforce/Editor/ParticleEditor.hpp

33 lines
1015 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-02-01 20:04:55 +00:00
#include "Space.hpp"
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class EffectEditor : public EditorSpace {
struct State : Space::State {
2019-08-11 00:49:41 +00:00
AT_DECL_DNA_YAMLV
2018-12-08 05:30:43 +00:00
String<-1> path;
} m_state;
const Space::State& spaceState() const override { return m_state; }
2018-12-08 05:30:43 +00:00
struct View : specter::View {
View(specter::ViewResources& res, specter::View& parent) : specter::View(res, parent) {}
};
specter::View* buildContentView(specter::ViewResources& res) override { return nullptr; }
2016-02-01 20:04:55 +00:00
public:
2018-12-08 05:30:43 +00:00
EffectEditor(ViewManager& vm, Space* parent) : EditorSpace(vm, Class::EffectEditor, parent) {}
EffectEditor(ViewManager& vm, Space* parent, ConfigReader& r) : EffectEditor(vm, parent) { m_state.read(r); }
EffectEditor(ViewManager& vm, Space* parent, const EffectEditor& other) : EffectEditor(vm, parent) {
m_state = other.m_state;
}
Space* copy(Space* parent) const override { return new EffectEditor(m_vm, parent, *this); }
2016-02-01 20:04:55 +00:00
bool usesToolbar() const override { return true; }
2018-12-08 05:30:43 +00:00
};
2016-02-01 20:04:55 +00:00
2021-04-10 08:42:06 +00:00
} // namespace metaforce