29#pragma region static_functions
49#pragma region overridden_functions
53 return std::make_unique<Particles>(*
this);
57 auto onUpdate(
float dt) ->
void override;
64 auto save(
Stream& stream)
const ->
void override;
66 auto addBlock(std::shared_ptr<ParticleBlock> newBlock) ->void
75#pragma region Particles_Functions
81#pragma region member_variables
83 std::vector<std::shared_ptr<ParticleBlock>>
blocks;
88#pragma region helper_functions
92#pragma region static_variables
sys::Json Stream
Definition AudioObject.h:20
A container for holding and updating particles that are all the same type.
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:24
Type
Definition System.h:20
@ Particles
Definition System.h:36
System(const std::string &typeName, Type systemType)
Definition System.cpp:75
Particles()
Definition Particles.cpp:29
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition Particles.h:59
auto onUpdate(float dt) -> void override
called once every frame.
Definition Particles.cpp:53
auto operator=(const Particles &other) -> Particles &
Definition Particles.cpp:39
auto onRender() -> void override
called every frame after update has been called for every object.
Definition Particles.cpp:61
static auto getEnum() -> Type
function required by all systems
Definition Particles.h:34
~Particles() override=default
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition Particles.h:51
auto load(Stream &stream) -> void override
Definition Particles.cpp:69
Particles(const Particles &other)=default
std::vector< std::shared_ptr< ParticleBlock > > blocks
Definition Particles.h:83
auto systemShowMenu() -> void override
Specific systems should override this function to show their specific menu for the system.
Definition Particles.cpp:84
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition Particles.cpp:74
auto operator=(Particles &&other) noexcept -> Particles &=default
auto addBlock(std::shared_ptr< ParticleBlock > newBlock) -> void
Definition Particles.cpp:79
the type of elements in a basic_json container
Definition GameObject.h:37