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