fix: context typing

This commit is contained in:
cha0s 2021-04-07 17:36:55 -05:00
parent fc033fa687
commit 4a14a541e1

View File

@ -37,15 +37,6 @@ export default (latus) => class Behaved extends decorate(Trait) {
} = this.constructor.defaultState());
}
static behaviorTypes() {
return {
context: {
type: 'context',
label: 'Context',
},
};
}
get context() {
return this.#context;
}
@ -77,6 +68,10 @@ export default (latus) => class Behaved extends decorate(Trait) {
static children(entity) {
return {
context: {
type: 'context',
label: 'Context',
},
isBehaving: {
type: 'bool',
label: 'Is behaving',