mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
Updated Resources: spread functions (markdown)
parent
787c55d197
commit
e54dc45d42
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# 🚧 Under construction
|
# 🚧 Under construction
|
||||||
|
|
||||||
Resource **spread models** are applied to check whether resource can or cannot be placed in a cell. Fantasy Map Generator allows to create custom spread models, but it requires some understanding on how functions work.
|
Resource **spread models** are applied to check whether resource can or cannot be placed in a cell. Fantasy Map Generator allows to create custom spread models, but it requires some understanding on how models work.
|
||||||
|
|
||||||
# Technical info
|
# Technical info
|
||||||
Technically spread models are functional expressions evaluated for each cell to return `true` or `false`. If `true` is returned, the resource can be placed in the cell. The expressions are valid JS, you can use logical operators (`!` for not, `||` for OR, `&&` for and, etc.) and other features.
|
Technically spread models are functional expressions evaluated for each cell to return `true` or `false`. If `true` is returned, the resource can be placed in the cell. The expressions are valid JS, you can use logical operators (`!` for not, `||` for OR, `&&` for and, etc.) and other features.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue