Currently, spatial maps require you to manually keep items at the correct position in the spatial map by calling Move. In the case of objects that have a Position field and a Moved event, that wouldn't be strictly necessary; if the spatial map can detect this, it could keep things synced automatically.
This issue (now closed) in GoRogue points to a proposal to solve this.
The main issue would be doing it in an intuitive way which does not cost performance. Further testing and development is needed; but it should be possible one way or another.
Currently, spatial maps require you to manually keep items at the correct position in the spatial map by calling
Move
. In the case of objects that have aPosition
field and aMoved
event, that wouldn't be strictly necessary; if the spatial map can detect this, it could keep things synced automatically.This issue (now closed) in GoRogue points to a proposal to solve this.
The main issue would be doing it in an intuitive way which does not cost performance. Further testing and development is needed; but it should be possible one way or another.