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,7 +17,13 @@ export function behaviorTypes() {
bool: {
defaultLiteral: true,
},
context: {
context: (context) => {
if (context?._traits) {
debugger;
}
// console.log(context)
return {
...(context ? context.description() : {}),
children: {
add: {
type: 'void',
@ -30,6 +38,7 @@ export function behaviorTypes() {
],
},
},
};
},
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',