Adds BattleRandom methods for unsigned 32 bit numbers
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-03-26 11:36:13 +01:00
parent 4f77d30a7d
commit 5dff6d735f

View File

@@ -19,6 +19,9 @@ namespace CreatureLib::Battling {
i32 Get() noexcept { return _random.Get(); }
i32 Get(i32 max) noexcept { return _random.Get(max); }
i32 Get(i32 min, i32 max) noexcept { return _random.Get(min, max); }
u32 GetUnsigned() noexcept { return _random.GetUnsigned(); }
u32 GetUnsigned(u32 max) noexcept { return _random.GetUnsigned(max); }
u32 GetUnsigned(u32 min, u32 max) noexcept { return _random.GetUnsigned(min, max); }
ArbUt::Random& GetRNG() noexcept { return _random; }
uint_fast32_t GetSeed() const noexcept { return _random.GetSeed(); }
};