TombEngine/TR5Main/Scripting
hispidence b4ffd55914 GameFlowScript changes:
Inherit from LuaHandler.

Remove the SCRIPT.DAT-related code.

Add m_translationsMap which stores strings by key and holds a vector with their translations. The index of a translation corresponds with the index of the language in m_languageNames; e.g. if Italian is at index 2 in m_languageNames, then the Italian translation of a string will be at index 2 in the vector. See GameFlow:SetStrings in English.lua.

Add m_languageNames which stores a vector of language names. See GameFlow:SetLanguageNames in English.lua.

Add WriteDefaults and AddTracks, which is there for data which isn't in Lua scripts yet. It will be removed in the future.

Add AddLevel, which corresponds with GameFlow:AddLevel in Gameflow.lua.

Add LoadGameFlowScript, which loads (for now) Gameflow.lua and English.lua.

Add GetLang, which is to load the old-style strings and which will be removed when the switch to new strings is complete.
2021-06-16 14:51:58 +01:00
..
Scripts Call WriteDefaults and AddTracks. These are temporary things to add the settings which were in SCRIPT.DAT but which have no Lua counterpart yet. 2021-06-16 14:38:59 +01:00
AudioTracks.h Make hardcoded array of audio names, as they would normally be loaded from SCRIPT.DAT which is being removed - this is only present until a new system is in-place for them. 2021-06-16 14:29:50 +01:00
GameFlowScript.cpp Fix line endings 2020-12-21 13:16:29 -03:00
GameFlowScript.h GameFlowScript changes: 2021-06-16 14:51:58 +01:00
GameLogicScript.cpp GameLogicScript inherits from LuaHandler now. 2021-06-16 14:39:43 +01:00
GameLogicScript.h GameLogicScript inherits from LuaHandler now. 2021-06-16 14:39:43 +01:00
LanguageScript.cpp Fix line endings 2020-12-21 13:16:29 -03:00
LanguageScript.h Change Strings to std::unordered_map. This is a temporary thing to work nicely with the current English.lua, and will be removed/replaced/reworked when the new strings system is fully in place. 2021-06-16 14:33:43 +01:00
LuaHandler.cpp Add LuaHandler class to hold some repeated functionality between GameFlowScript and GameLogicScript. 2021-06-16 14:32:42 +01:00
LuaHandler.h Add LuaHandler class to hold some repeated functionality between GameFlowScript and GameLogicScript. 2021-06-16 14:32:42 +01:00