mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 23:27:45 +00:00
fix missing include in RNGMgr, expose rng engine
This commit is contained in:
parent
6f7198bd5a
commit
0e55c62e2d
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <Logging/Logger.h>
|
||||||
|
|
||||||
namespace Sapphire::World::Manager
|
namespace Sapphire::World::Manager
|
||||||
{
|
{
|
||||||
/*!
|
/*!
|
||||||
|
@ -95,6 +97,11 @@ namespace Sapphire::World::Manager
|
||||||
return RandGenerator< T >( m_engine );
|
return RandGenerator< T >( m_engine );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::shared_ptr< std::mt19937 > getRNGEngine()
|
||||||
|
{
|
||||||
|
return m_engine;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
template< std::size_t STATE_SIZE >
|
template< std::size_t STATE_SIZE >
|
||||||
|
|
Loading…
Add table
Reference in a new issue