2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

Initial round of particle factories

This commit is contained in:
Jack Andersen
2016-02-01 18:29:58 -10:00
parent 3f21eae617
commit dd75a37b66
14 changed files with 1129 additions and 14 deletions

45
Editor/ParticleEditor.hpp Normal file
View File

@@ -0,0 +1,45 @@
#ifndef URDE_PARTICLE_EDITOR_HPP
#define URDE_PARTICLE_EDITOR_HPP
#include "Space.hpp"
namespace URDE
{
class EffectEditor : public EditorSpace
{
struct State : Space::State
{
DECL_YAML
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;
}
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);
}
};
}
#endif // URDE_PARTICLE_EDITOR_HPP