rustyscreeps / screeps-game-api

Typed bindings to the Screeps in-game API for WASM Rust AIs
MIT License
138 stars 44 forks source link

Implement functions from `position/game_math` for `RoomXY` #498

Closed shanemadden closed 2 months ago

shanemadden commented 6 months ago

RoomXY should have equivalent functionality to Position for in-room stuff that we can do fully within native math. All of the functions from the game_math module would make sense on the RoomXY type.

Potentially as an enhancement, both types could use a manhattan range function in addition to the current chebyshev range function. Maybe we should even go as far as providing a euclidean range function?

shanemadden commented 6 months ago

Should add some of these to RoomName too

shanemadden commented 2 months ago

Resolved by #521