0ad/source/simulation2/scripting
wraitii 7350b9042e Don't poll territory in Position component
CmpPosition::TurnStart checks whether the territory changed underneath
each entityevery turn. The only user of this is TerritoryDecay
(structures, for the most part). It is rather inefficient to have this
done for all entities.
The simplest solution is to listen to position-changed messages in
TerritoryDecay instead. This should hardly ever happen in vanilla 0
A.D., except in Atlas, so it's basically free.

This sort of reverts 19965ce37a (original implementation) and
c44b48bd59.

Accepted By: Freagarach (concept only)
Differential Revision: https://code.wildfiregames.com/D5009
This was SVN commit r27673.
2023-06-13 15:48:03 +00:00
..
EngineScriptConversions.cpp [SM91] Update to Spidermonkey 91.1.3 APIs 2023-01-10 17:06:47 +00:00
JSInterface_Simulation.cpp Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
JSInterface_Simulation.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
MessageTypeConversions.cpp Don't poll territory in Position component 2023-06-13 15:48:03 +00:00
ScriptComponent.cpp Fix atlas crash with RM capture the relic. 2021-06-07 18:48:16 +00:00
ScriptComponent.h Fixes macOS warnings after adding final keyword to simulation classes in 3eee3a444d. 2022-03-07 23:04:11 +00:00