2020-06-23 11:19:59 -05:00
|
|
|
export function behaviorTypes() {
|
2020-06-20 01:40:53 -05:00
|
|
|
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',
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|