I'm trying to implement interactions between tiles but I'm not quite sure how to handle the data.
Every tile have very specific interactions with other tiles that no other tile shares.
Right now I have a resource shared among all the tiles with the basic information every tile needs. I load all the resources into an Array and every resource index matches their tile_id.
And now I'm thinking how to add these very specific behaviours and conditions for every tile.
Should I add a variable for every resource in which I add a script with that tile's specific behaviour? Is there a problem having multiple small scripts loaded all at once? Should these scripts be resources too because they are reference-counted?
Edit: The game is turn based so this conditions only need to be tested once per turn.
If anyone knows of a better way of handling the data for the tiles please let me know.