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 Flow from './types/flow';
import Timing from './types/timing'; import Timing from './types/timing';
import Utility from './types/utility'; import Utility from './types/utility';
@ -15,7 +17,13 @@ export function behaviorTypes() {
bool: { bool: {
defaultLiteral: true, defaultLiteral: true,
}, },
context: { context: (context) => {
if (context?._traits) {
debugger;
}
// console.log(context)
return {
...(context ? context.description() : {}),
children: { children: {
add: { add: {
type: 'void', type: 'void',
@ -30,6 +38,7 @@ export function behaviorTypes() {
], ],
}, },
}, },
};
}, },
Flow: { Flow: {
children: { children: {
@ -90,6 +99,11 @@ export function behaviorTypes() {
}, },
Utility: { Utility: {
children: { children: {
log: {
type: 'void',
label: 'Log.',
args: [],
},
makeArray: { makeArray: {
type: 'array', type: 'array',
label: 'Make array.', label: 'Make array.',
@ -100,10 +114,17 @@ export function behaviorTypes() {
label: 'Make object.', label: 'Make object.',
args: [], args: [],
}, },
log: { makeVector: {
type: 'void', type: 'vector',
label: 'Log.', label: 'Make vector.',
args: [], args: [
['x', {
type: 'number',
}],
['y', {
type: 'number',
}],
],
}, },
merge: { merge: {
type: 'object', type: 'object',