#ifndef SpawnerSystem_h__ #define SpawnerSystem_h__ #include #include "Common.h" #include "GLM.h" #include "Core/System.h" #include "Events/ESpawnerSpawn.h" #include "Core/Transform.h" #include "Core/ResourceManager.h" #include "Core/EntityFileParser.h" class SpawnerSystem : public System { public: SpawnerSystem(World* world, EventBroker* eventBroker); static EntityWrapper Spawn(EntityWrapper spawner, EntityWrapper parent = EntityWrapper::Invalid); private: EventRelay m_OnSpawnerSpawn; bool OnSpawnerSpawn(Events::SpawnerSpawn& e); }; #endif