Chris3606 / GoRogue

.NET Standard roguelike library in C#. Features many algorithms and data structures pertinent to roguelike/2D game developers, specifically designed to be minimally intrusive upon the developer's architecture.
MIT License
492 stars 30 forks source link

Unification of return interfaces. #2

Closed Chris3606 closed 6 years ago

Chris3606 commented 6 years ago

We have some classes returning List, some returning IEnumerable -- particularly with respect to Coord. These should be unified to likely use IEnumerable whenenver possible.

Chris3606 commented 6 years ago

Classes returning lists include PositionsOnLine, CardinalPositionsOnLine, and pathing beta. (AStar) pathing by nature of algorithm function couldn't efficiently return an IEnumerable, others certainly could.