I'm currently working on a project that renders a tile map based on a one-dimensional array as grid.
So I have to transform that array into a two-dimensional array in order to instantiate a Grid that can be used by the finders.
If I'm not mistaken, it seems that we could have a new Grid that knows how to handle a one-dimensional array while exposing the same API, or even extend PF.Grid to handle a one-dimensional grid argument.
I didn't read all of the finders yet but from what I've seen it would be possible to extend Grid in order to support one-dimensional arrays with no breaking changes to the finders, right?
I'm currently working on a project that renders a tile map based on a one-dimensional array as grid.
So I have to transform that array into a two-dimensional array in order to instantiate a Grid that can be used by the finders.
If I'm not mistaken, it seems that we could have a new Grid that knows how to handle a one-dimensional array while exposing the same API, or even extend
PF.Grid
to handle a one-dimensionalgrid
argument.I didn't read all of the finders yet but from what I've seen it would be possible to extend
Grid
in order to support one-dimensional arrays with no breaking changes to the finders, right?