Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
RandomSystem
RandomSystem.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RandomId.hpp
"
4
#include <
ivorium_core/ivorium_core.hpp
>
5
6
namespace
iv
7
{
8
11
class
RandomSystem
:
public
System
12
{
13
public
:
14
RandomSystem
(
SystemContainer
* sc );
15
virtual
std::string
debug_name
()
const override
{
return
"RandomSystem"
; }
16
17
void
seed
(
RandomId
, uint_fast32_t
seed
);
18
uint_fast32_t
seed
(
RandomId
);
19
20
private
:
21
std::unordered_map< RandomId, uint_fast32_t > seeds;
22
};
23
24
}