Merge resource agnostic branch by s0600204, fixes #3934.
commitfce2f519d9585e1e8af485207dbb785ee16da8ac
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 19 Nov 2016 14:29:45 +0000 (19 14:29 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 19 Nov 2016 14:29:45 +0000 (19 14:29 +0000)
tree657ddb46eca539bb6cd5c9a0b80817890a0e9e33
parentcfbff38d59b0e4181a1679cbba75e53323ce59b3
Merge resource agnostic branch by s0600204, fixes #3934.

Remove all occurances of hardcoded resources in the simulation, GUI and AI code by
specifying resources as JSON files in a new simulation subdirectory and
accessing them through a globally defined prototype.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@18964 3db68df2-c116-0410-a063-a993310a9797
60 files changed:
binaries/data/mods/public/globalscripts/Resources.js [new file with mode: 0644]
binaries/data/mods/public/globalscripts/Templates.js
binaries/data/mods/public/gui/common/functions_utility.js
binaries/data/mods/public/gui/common/l10n.js
binaries/data/mods/public/gui/common/tooltips.js
binaries/data/mods/public/gui/session/diplomacy_window.xml
binaries/data/mods/public/gui/session/menu.js
binaries/data/mods/public/gui/session/selection_details.js
binaries/data/mods/public/gui/session/selection_panels.js
binaries/data/mods/public/gui/session/selection_panels_helpers.js
binaries/data/mods/public/gui/session/selection_panels_left/barter_panel.xml
binaries/data/mods/public/gui/session/session.js
binaries/data/mods/public/gui/session/top_panel/resource_food.xml [deleted file]
binaries/data/mods/public/gui/session/top_panel/resource_metal.xml [deleted file]
binaries/data/mods/public/gui/session/top_panel/resource_population.xml
binaries/data/mods/public/gui/session/top_panel/resource_stone.xml [deleted file]
binaries/data/mods/public/gui/session/top_panel/resource_wood.xml [deleted file]
binaries/data/mods/public/gui/session/top_panel/resources.xml [new file with mode: 0644]
binaries/data/mods/public/gui/session/trade_window.xml
binaries/data/mods/public/gui/structree/draw.js
binaries/data/mods/public/gui/structree/helper.js
binaries/data/mods/public/gui/structree/load.js
binaries/data/mods/public/gui/structree/rows.xml
binaries/data/mods/public/gui/structree/structree.js
binaries/data/mods/public/gui/structree/structree.xml
binaries/data/mods/public/gui/summary/counters.js
binaries/data/mods/public/gui/summary/layout.js
binaries/data/mods/public/gui/summary/summary.js
binaries/data/mods/public/l10n/messages.json
binaries/data/mods/public/simulation/ai/common-api/resources.js
binaries/data/mods/public/simulation/ai/common-api/shared.js
binaries/data/mods/public/simulation/ai/common-api/terrain-analysis.js
binaries/data/mods/public/simulation/ai/petra/baseManager.js
binaries/data/mods/public/simulation/ai/petra/chatHelper.js
binaries/data/mods/public/simulation/ai/petra/config.js
binaries/data/mods/public/simulation/ai/petra/headquarters.js
binaries/data/mods/public/simulation/ai/petra/queueManager.js
binaries/data/mods/public/simulation/ai/petra/researchManager.js
binaries/data/mods/public/simulation/components/Barter.js
binaries/data/mods/public/simulation/components/Cost.js
binaries/data/mods/public/simulation/components/GuiInterface.js
binaries/data/mods/public/simulation/components/Loot.js
binaries/data/mods/public/simulation/components/Looter.js
binaries/data/mods/public/simulation/components/Player.js
binaries/data/mods/public/simulation/components/ProductionQueue.js
binaries/data/mods/public/simulation/components/ResourceDropsite.js
binaries/data/mods/public/simulation/components/ResourceGatherer.js
binaries/data/mods/public/simulation/components/ResourceSupply.js
binaries/data/mods/public/simulation/components/ResourceTrickle.js
binaries/data/mods/public/simulation/components/StatisticsTracker.js
binaries/data/mods/public/simulation/components/Trader.js
binaries/data/mods/public/simulation/components/Upgrade.js
binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
binaries/data/mods/public/simulation/components/tests/test_Player.js
binaries/data/mods/public/simulation/data/resources/food.json [new file with mode: 0644]
binaries/data/mods/public/simulation/data/resources/metal.json [new file with mode: 0644]
binaries/data/mods/public/simulation/data/resources/stone.json [new file with mode: 0644]
binaries/data/mods/public/simulation/data/resources/wood.json [new file with mode: 0644]
binaries/data/mods/public/simulation/helpers/Cheat.js
binaries/data/mods/public/simulation/helpers/Resources.js [new file with mode: 0644]