mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 15:17:46 +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 <vector>
|
||||
|
||||
#include <Logging/Logger.h>
|
||||
|
||||
namespace Sapphire::World::Manager
|
||||
{
|
||||
/*!
|
||||
|
@ -95,6 +97,11 @@ namespace Sapphire::World::Manager
|
|||
return RandGenerator< T >( m_engine );
|
||||
}
|
||||
|
||||
std::shared_ptr< std::mt19937 > getRNGEngine()
|
||||
{
|
||||
return m_engine;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
template< std::size_t STATE_SIZE >
|
||||
|
|
Loading…
Add table
Reference in a new issue