chore: desc

This commit is contained in:
cha0s 2020-06-24 03:07:53 -05:00
parent a28bb31750
commit 17ce38f8ab

View File

@ -1,3 +1,5 @@
// import {Entity} from '@avocado/entity';
import Flow from './types/flow';
import Timing from './types/timing';
import Utility from './types/utility';
@ -15,21 +17,28 @@ export function behaviorTypes() {
bool: {
defaultLiteral: true,
},
context: {
children: {
add: {
type: 'void',
label: 'Add $2 as $1.',
args: [
['key', {
type: 'string',
}],
['value', {
type: 'any',
}],
],
context: (context) => {
if (context?._traits) {
debugger;
}
// console.log(context)
return {
...(context ? context.description() : {}),
children: {
add: {
type: 'void',
label: 'Add $2 as $1.',
args: [
['key', {
type: 'string',
}],
['value', {
type: 'any',
}],
],
},
},
},
};
},
Flow: {
children: {
@ -90,6 +99,11 @@ export function behaviorTypes() {
},
Utility: {
children: {
log: {
type: 'void',
label: 'Log.',
args: [],
},
makeArray: {
type: 'array',
label: 'Make array.',
@ -100,10 +114,17 @@ export function behaviorTypes() {
label: 'Make object.',
args: [],
},
log: {
type: 'void',
label: 'Log.',
args: [],
makeVector: {
type: 'vector',
label: 'Make vector.',
args: [
['x', {
type: 'number',
}],
['y', {
type: 'number',
}],
],
},
merge: {
type: 'object',