Commit 1f2febdd

– add state hash calculation to the floor class
– automatically come up with new ids in the tile manager
– initialise the floor a little further (WiP)

This actually implements the floor hash calculation so updates can be detected by the renderer. Also, similar to the ObjectManager, the TileManager now dynamically adds new TileType IDs when adding new tile data.
As a proof-of-concept the GameState now manually adds the first tile type (which is called floor) so that the rest of the code can properly initialise (looking at you, renderer).

Leave a Reply

Your email address will not be published.