0ad/binaries/data/mods
Vantha a89ce596a4
Revamp GetTemplateDataHelper
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.
2026-08-08 17:21:44 +02:00
..
_test.dae/art
_test.gui/gui Add Engine.openRequest 2026-04-26 12:44:39 +02:00
_test.minimal Fix trailing whitespace and add pre-commit hook 2025-06-15 20:08:48 +02:00
_test.mods/config Fix mods configuration stacking and mergin per mod 2025-06-16 11:03:09 -05:00
_test.scriptinterface Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
_test.sim Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
_test.tex/art/textures
_test.xero
mod Adds sRGB support for proper lighting 2026-07-29 01:29:09 +02:00
public Revamp GetTemplateDataHelper 2026-08-08 17:21:44 +02:00