so, i'm building a tilemap system and i'm trying to figure out how to handle tiles in dots. my current mono behaviour setup looks like:
-> Chunk (TileChunk Script)
--> Tile (Tile Script)
--> Tile (Tile Script)
-> Chunk (TileChunk Script)
--> Tile (Tile Script)
--> <...etc...>```
basically the Tilemap script manges what chunks should be loaded, easy to convert to ECS
the Chunk Spawns Tiles, easy to convert to ECS
the Tile... this is the hard part, it needs to be extendable. so for example a subclass of tile could override onClick so the tiles texture changes when its clicked, or maybe a subclass of tile could override onWalk that acts of a pressure plate triggering other tiles.
How would i implement this in ECS?