Split from #47656: Units hidden by extras should not impose ZoC to movement of those who do not know about them.
Implementation should not degrade performance of (rather typical) rulesets that do not use the unit-hiding-extras feature -> one solution would be to just have two ZoC checking implementations, and depending on ruleset loading time check either current performant one, or the one with the new functionality, would be used.
Naturally, we would still want also the full-zoc-check implementation be as performant as possible.
Split from #47656: Units hidden by extras should not impose ZoC to movement of those who do not know about them.
Implementation should not degrade performance of (rather typical) rulesets that do not use the unit-hiding-extras feature -> one solution would be to just have two ZoC checking implementations, and depending on ruleset loading time check either current performant one, or the one with the new functionality, would be used. Naturally, we would still want also the full-zoc-check implementation be as performant as possible.