FaronBracy / RogueSharp

A .NET Standard class library providing map generation, path-finding, and field-of-view utilities frequently used in roguelikes or 2D tile based games. Inspired by libtcod
https://roguesharp.wordpress.com/
MIT License
574 stars 58 forks source link

Map class should have custom Indexer to get Cells #18

Closed FaronBracy closed 1 year ago

FaronBracy commented 5 years ago

If the Map class had a custom indexer it would allow us to call Map[X,Y] to get a cell at an X,Y coordinate.

I have received feedback that this would be slightly nicer than calling Map.GetCell( X, Y ) as is available now.

FaronBracy commented 1 year ago

Added in https://github.com/FaronBracy/RogueSharp/commit/b6f3199fd320afb6ca79e3e510d1ad3760055176