mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
This patch is primarily meant as preparation in order to be able to reuse this logic for GetEntityState calls in the future. Key changes: - Clearer API by providing different functions for different purposes. - Slight performance optimisation by storing parameters in a context object and pulling the info from there instead of redeclaring a lambda each time, which it seems Spidermonkey struggled to optimise well. - Allow computing only partial template data, specified by passing a list of desired components. (to be used more in the future) - Make it so the naming and structure of template data and matches 1:1 with the data in entity states. This makes accessing values from them more consistent and would also allow e.g. adopting data between the two in the future. |
||
|---|---|---|
| .. | ||
| _test.dae/art | ||
| _test.gui/gui | ||
| _test.minimal | ||
| _test.mods/config | ||
| _test.scriptinterface | ||
| _test.sim | ||
| _test.tex/art/textures | ||
| _test.xero | ||
| mod | ||
| public | ||