feat: track direction

This commit is contained in:
cha0s 2019-03-18 20:05:11 -05:00
parent 73a91efbeb
commit 2298d65cd3

View File

@ -4,7 +4,9 @@ import {Vector} from '@avocado/math';
import {simpleState, Trait} from '../trait'; import {simpleState, Trait} from '../trait';
const decorate = compose( const decorate = compose(
simpleState('direction'), simpleState('direction', {
track: true,
}),
); );
class DirectionalBase extends Trait { class DirectionalBase extends Trait {