metaforce/Editor/ParticleEditor.hpp

34 lines
985 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"
2018-12-08 05:30:43 +00:00
namespace urde {
class EffectEditor : public EditorSpace {
struct State : Space::State {
AT_DECL_DNA_YAML
AT_DECL_DNAV
String<-1> path;
} m_state;
const Space::State& spaceState() const { return m_state; }
struct View : specter::View {
View(specter::ViewResources& res, specter::View& parent) : specter::View(res, parent) {}
};
specter::View* buildContentView(specter::ViewResources& res) { 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 { return new EffectEditor(m_vm, parent, *this); }
2016-02-01 20:04:55 +00:00
2018-12-08 05:30:43 +00:00
bool usesToolbar() const { return true; }
};
2016-02-01 20:04:55 +00:00
2018-12-08 05:30:43 +00:00
} // namespace urde