#include "../app/IntervalTimer.hpp"
-#include <list>
+#include <vector>
#include <glm/glm.hpp>
namespace blank {
-class RandomWalk;
+class Controller;
class World;
class Spawner {
private:
void CheckDespawn() noexcept;
void TrySpawn();
- void Spawn(const glm::tvec3<int> &, const glm::vec3 &);
+ void Spawn(const glm::ivec3 &, const glm::vec3 &);
private:
World &world;
- std::list<RandomWalk> controllers;
+ std::vector<Controller *> controllers;
IntervalTimer timer;
float despawn_range;