'ello both :)
@ILLISIS Regarding remote call, that would probably be faster way to move forward as it is, so maybe the two of us could look into doing some integration. So... I haven't had much experience with this, so I'm now looking at possible options. I guess it would be roughly one of the following three:
- Construction Planner creates custom event (for
on_entity_force_changed
), and provides remote interface for fetching the event ID so other mods could listen to it.
- Construction Planner provides remote interface for registering callback functions to invoke when force changes.
- Constructron provides remote interface for passing-in list of entities that should be taken into account for (re)scanning/calculating the path.
So, I think option (1) looks the cleanest to me, and maybe future-proof (should a proper event get introduced into the game engine). It also feels kinda right (reacting on event).
Option (2) is kinda a variation on (1), not sure if there's any drawbacks to using custom events vs this type of integration.
Option (3) is probably the least interesting, unless you think you could use something like that with other mods that would like to signal Constructron to recalculate pathing etc in some way (like for prioritising specific areas).
So, got any opinions on this one? :)
Best regards,
Branko