Add on_research_cancelled event
Posted: Mon Jun 24, 2019 9:34 pm
Can we add an on_research_cancelled event that includes which research was cancelled. It should be called for both the current research and for ones in the queue.
My use case is I react to the number of a specific infinite research being done/queued in relation to an ingame maximum. When there is as much research queued as the ingame maximum I disabled the technology. At present I can use completed and started to catch 90% of the use cases, but if a research is cancelled and another not started my mod is int he dark.
I use the events rather than polling to make it reactive and simplier code.
My use case is I react to the number of a specific infinite research being done/queued in relation to an ingame maximum. When there is as much research queued as the ingame maximum I disabled the technology. At present I can use completed and started to catch 90% of the use cases, but if a research is cancelled and another not started my mod is int he dark.
I use the events rather than polling to make it reactive and simplier code.