mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Improve GameScriptLevel.
Rename LARA_DRAW_TYPE to LARA_TYPE as it's used in more than just drawing code. Make WEATHER_TYPE a scoped enum (would have done this for LARA_TYPE too but didn't want to pepper casts in other parts of the codebase). Relabel constants in both enums. Add kLaraTypes and kWeatherTypes and add them as tables in GameFlow. Remove Background member - it's not level-specific so GameFlow is a better home for it. Add (incomplete for now) documentation for some GameScriptLevel members - those I tested, at any rate.
This commit is contained in:
parent
4a2e61fcbc
commit
c96a92f1cb
3 changed files with 112 additions and 17 deletions
|
@ -81,6 +81,9 @@ __(not yet implemented)__
|
|||
@tparam table table array-style table with TODO EXTRA INFO HERE
|
||||
*/
|
||||
m_lua->set_function("SetSettings", &GameFlow::SetSettings, this);
|
||||
|
||||
MakeReadOnlyTable("WeatherType", kWeatherTypes);
|
||||
MakeReadOnlyTable("LaraType", kLaraTypes);
|
||||
}
|
||||
|
||||
GameFlow::~GameFlow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue