What is the equivalent of FlxState in Heaps.io ?

The Heaps.io library is a great gamedev tool for both 2d and 3d projects, however, the documentation is severely lacking at the time of writing this blogpost. It took me a while to find the answer to the question in the title, so I wanted to share this with you here, in the hope to …