Preparing search index...
The search index is not available
Wayward Types Viewer | 2.13.5-beta
Wayward Types Viewer
utilities/random/SeededGenerator
SeededGenerator
Class SeededGenerator<T>
Abstract
Based class for all seeded generators
Type Parameters
T
Hierarchy
SeededGenerator
LegacySeededGenerator
PCGSeededGenerator
Implements
IRandomGenerator
Index
Constructors
constructor
Properties
requires
Synchronization
state
Methods
advance
clone
clone
State
generate
State
get
get
History
get
Next
State
get
Result
get
Seed
pop
Seed
push
Seed
set
Seed
start
History
stop
History
take
History
Constructors
constructor
new
Seeded
Generator
<
T
>
(
requiresSynchronization
:
boolean
, initialState
?:
T
)
:
SeededGenerator
<
T
>
Type Parameters
T
Parameters
requiresSynchronization:
boolean
Optional
initialState:
T
Returns
SeededGenerator
<
T
>
Properties
requires
Synchronization
requires
Synchronization
:
boolean
Protected
state
state
:
T
Methods
advance
advance
(
)
:
SeededGenerator
<
T
>
Returns
SeededGenerator
<
T
>
Abstract
clone
clone
(
requiresSynchronization
?:
boolean
)
:
SeededGenerator
<
T
>
Parameters
Optional
requiresSynchronization:
boolean
Returns
SeededGenerator
<
T
>
Protected
Abstract
clone
State
clone
State
(
)
:
T
Returns
T
Protected
Abstract
generate
State
generate
State
(
)
:
T
Returns
T
get
get
(
)
:
number
Returns
number
get
History
get
History
(
)
:
undefined
|
IRandomHistory
<
T
>
[]
Returns
undefined
|
IRandomHistory
<
T
>
[]
Abstract
get
Next
State
get
Next
State
(
state
:
T
)
:
void
Parameters
state:
T
Returns
void
Protected
Abstract
get
Result
get
Result
(
state
:
T
)
:
number
Parameters
state:
T
Returns
number
get
Seed
get
Seed
(
)
:
T
Returns
T
pop
Seed
pop
Seed
(
)
:
T
Returns
T
push
Seed
push
Seed
(
newSeed
?:
T
)
:
void
Parameters
Optional
newSeed:
T
Returns
void
set
Seed
set
Seed
(
newSeed
:
T
)
:
void
Parameters
newSeed:
T
Returns
void
start
History
start
History
(
maxHistory
?:
number
)
:
void
Parameters
maxHistory:
number
= 100
Returns
void
stop
History
stop
History
(
)
:
IRandomHistory
<
T
>
[]
Returns
IRandomHistory
<
T
>
[]
take
History
take
History
(
)
:
undefined
|
IRandomHistory
<
T
>
[]
Returns
undefined
|
IRandomHistory
<
T
>
[]
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Seeded
Generator
constructor
requires
Synchronization
state
advance
clone
clone
State
generate
State
get
get
History
get
Next
State
get
Result
get
Seed
pop
Seed
push
Seed
set
Seed
start
History
stop
History
take
History
Generated using
TypeDoc
Based class for all seeded generators