Closed ChristianGreiner closed 6 years ago
I myself am not a big fan of static state due to its potential for all kind of nasty side effects (also it keeps it in memory forever unless you null it). It should be possible to modify the code so that static is no longer needed.
Aside from that looks clean.
Excuse me I meant making the buffer a instance field of TilemapFloodFill. My mistake.
I made some changes (see last commit) @Barsonax @ilexp
@ilexp Done 👍 Do you agree with the changes?
@BobGneu Since this PR is primarily about extracting the algorithm implementation, I'd say all improvements to the algorithm itself are entirely optional. Merging now, but further improvements are of course appreciated!
https://github.com/AdamsLair/duality/issues/612