Error code · a mistake in the document
dt::kind
A parameter's kind is not a kind a parameter holds, or nothing says what it holds.
What the program says
dt::kind
× `ground` has no default, and no `kind=`
╭─[example.dtile:3:11]
2 │ let shore {
3 │ param ground
· ───┬──
· ╰── no kind
4 │ stack { ground }
╰────
help: a parameter holds a value of a kind: write `param ground kind=thing`,
`kind=layer`, `kind=length`, `kind=angle` or `kind=plain`, or give it
a default (a number, `"5dmm"`, or the name of a thing), whose kind it
takes
explain: https://dharmatiles.healtoletgo.com/e/kind
offline: dharmatiles explain dt::kind
What to do
Write param name kind=thing, kind=layer, kind=length, kind=angle or kind=plain, or give it a default.
Broken, then fixed
dt::kinddharmatiles version="1.0.0"
let shore {
param ground
stack { ground }
}
tile size="1x1" {
stack { shore ground=dirt }
}dharmatiles version="1.0.0"
let shore {
param ground kind=layer
stack { ground }
}
tile size="1x1" {
stack { shore ground=dirt }
}The rule
A param is a name of a kind: a length, an angle, a plain number, a thing or a layer. The kind is settled once, at the param, and never from where the param is used.
kind=says it:param ground kind=layer,param leaf kind=thing,param reach kind=length. With nokind=, it is the kind of its default:param n 3is a plain number,param w "5dmm"a length,param leaf pebblea thing. The words are the kinds' own (kinds).
Read it in context: Things and layers · A param's kind can be written: kind=