metaforce/Editor/ParticleEditor.hpp

47 lines
1.0 KiB
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"
2016-03-05 00:03:41 +00:00
namespace urde
2016-02-01 20:04:55 +00:00
{
class EffectEditor : public EditorSpace
{
struct State : Space::State
{
2018-02-22 07:24:51 +00:00
AT_DECL_DNA_YAML
AT_DECL_DNAV
2016-02-01 20:04:55 +00:00
String<-1> path;
} m_state;
const Space::State& spaceState() const {return m_state;}
2016-03-04 23:04:53 +00:00
struct View : specter::View
2016-02-02 04:29:58 +00:00
{
2016-03-04 23:04:53 +00:00
View(specter::ViewResources& res, specter::View& parent)
: specter::View(res, parent) {}
2016-02-02 04:29:58 +00:00
};
2016-03-04 23:04:53 +00:00
specter::View* buildContentView(specter::ViewResources& res)
2016-02-01 20:04:55 +00:00
{
return nullptr;
}
public:
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-07-09 01:23:34 +00:00
bool usesToolbar() const { return true; }
2016-02-01 20:04:55 +00:00
};
}