Hello, if I want to create a hex map, should I create a tile storage for storing tile hex pos, or I spawn the entity with tile hex pos directly?
I found more and more lib created a tile storage for storing tile hex pos. I think spawning the entity with tile hex pos directly is not very good.
For example, When we want to get a tile's neigbors, we should do:
- Get neighbors hex pos.
- Iter all entity with tile hex pos and check == to get neigbors entities. That may be very expensive.
If we use a Vec to store tile hex pos. we can get neighbors indices according neighbors hex pos. And then getting neigbors is very easy.