Added component/entity access functions for states to cut down on repetitive typing.