clik-engine API
GitHub
Preparing search index...
LevelConstraint
Interface LevelConstraint
A constraint that validates a generated level
interface
LevelConstraint
{
name
:
string
;
repair
?
(
level
:
GeneratedLevel
,
config
:
PCGConfig
)
:
GeneratedLevel
;
validate
(
level
:
GeneratedLevel
,
config
:
PCGConfig
)
:
ConstraintResult
;
}
Implemented by
DifficultyConstraint
EntityDensityConstraint
ReachabilityConstraint
Index
Properties
name
Methods
repair?
validate
Properties
name
name
:
string
Methods
Optional
repair
repair
?
(
level
:
GeneratedLevel
,
config
:
PCGConfig
)
:
GeneratedLevel
Optional auto-fix when validation fails
Parameters
level
:
GeneratedLevel
config
:
PCGConfig
Returns
GeneratedLevel
validate
validate
(
level
:
GeneratedLevel
,
config
:
PCGConfig
)
:
ConstraintResult
Parameters
level
:
GeneratedLevel
config
:
PCGConfig
Returns
ConstraintResult
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
name
Methods
repair
validate
GitHub
clik-engine API
Loading...
A constraint that validates a generated level