mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-02 09:47:58 +03:00
![]() 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. |
||
---|---|---|
.. | ||
Scripts | ||
AudioTracks.h | ||
GameFlowScript.cpp | ||
GameFlowScript.h | ||
GameLogicScript.cpp | ||
GameLogicScript.h | ||
LanguageScript.cpp | ||
LanguageScript.h | ||
LuaHandler.cpp | ||
LuaHandler.h |