30 lines
578 B
JavaScript
30 lines
578 B
JavaScript
export function behaviorTypes() {
|
|
return {
|
|
layer: (layer) => {
|
|
return {
|
|
tileAt: {
|
|
type: 'number',
|
|
label: 'Get tile at $1.',
|
|
args: [
|
|
['position', {
|
|
type: 'vector',
|
|
}],
|
|
],
|
|
},
|
|
setTileAt: {
|
|
type: 'void',
|
|
label: 'Set tile at $1 to $2.',
|
|
args: [
|
|
['position', {
|
|
type: 'vector',
|
|
}],
|
|
['tileIndex', {
|
|
type: 'number',
|
|
}],
|
|
],
|
|
},
|
|
};
|
|
},
|
|
};
|
|
}
|