Commit graph

14 commits

Author SHA1 Message Date
hispidence
f6aa2ac653 Include frameworkandsol.h instead of framework.h and sol.hpp. 2022-02-10 18:23:42 +00:00
hispidence
2889cab98a Take sol.hpp out of framework.h and include it only where needed.
This actually makes the project take longer to build, probably because of it no longer getting precompiled, but this is the first step of many in an effort to decouple them a bit to make things more sensible.
2022-02-10 18:20:03 +00:00
MontyTRC89
21b3cc8151 Merge branch 'master' into renderer_refactor
# Conflicts:
#	TR5Main/Renderer/Renderer11DrawEffect.cpp
#	TR5Main/TombEngine.vcxproj.filters
2021-11-23 09:28:40 +01:00
MontyTRC89
5b92de671d Added omni fog script command 2021-11-22 16:16:58 +01:00
Lwmte
9058f2e3de Use script for setting weather 2021-11-11 01:16:27 +03:00
hispidence
5f66005277 Remove j. 2021-08-23 19:22:31 +01:00
hispidence
bc9e863307 Give documentation comments new tag names. Part 2 of making the documentation better. 2021-08-23 19:16:24 +01:00
hispidence
93483e76ef Add unlimitedAir documentation comment. 2021-08-20 01:48:06 +01:00
hispidence
672f90e238 Add documentation for SetGameFarView, Level.FarView, and Level.UVRotate, as well as some value checking. 2021-08-17 13:36:34 +01:00
hispidence
94c6ada241 Update Level documentation. 2021-08-11 14:50:10 +01:00
hispidence
c21f2ac829 Rename some of GameScriptLevel's Lua "members" to better reflect their purpose.
Add documentation that was missing.
2021-08-09 20:02:55 +01:00
hispidence
9df901ec1f Remove ResetHub; as it's almost certainly going to be made obsolete with the new scripts and save game rework. 2021-08-09 00:07:08 +01:00
hispidence
c96a92f1cb 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.
2021-08-07 19:20:17 +01:00
hispidence
e6c076eb41 Move GameScriptLevel, GameScriptAudioTrack, GameScriptInventoryObject, GameScriptSkyLayer, GameScriptSettings and GameScriptMirror into their own files. This could be changed later as this does create many small .h and .cpp files, but for now this cleans things up and makes it easier to check things class by class.
Treat functions as global that would previously be accessed through the GameFlow table. This does pollute the global environment in Lua a bit, but keeps it consistent with the functions in GameLogicScript, which are all accessed as globals.

Add some default member initialisers.

Remove WriteDefaults. Rename Intro to IntroImagePath and make it a std::string.

Add some documentation for the functions of GameFlowScript.

Fix some comments.
2021-07-28 18:44:24 +01:00