Just wrote my own entity system to figure it out.

This commit is contained in:
Zed A. Shaw 2024-10-10 17:34:33 -04:00
parent a3eaf78fd3
commit cc4f83a1d1
8 changed files with 229 additions and 59 deletions

View file

@ -1,10 +1,6 @@
#include "rand.hpp"
std::random_device RNG;
std::mt19937 GENERATOR(RNG());
int Random::rand_int(int from, int to) {
std::uniform_int_distribution<int> rand(from, to);
return rand(GENERATOR);
namespace Random {
std::random_device RNG;
std::mt19937 GENERATOR(RNG());
}