TombEngine/TR5Main/Scripting
hispidence 9fbb3cc7b7 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
..
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 Improve GameScriptLevel. 2021-08-07 19:20:17 +01:00
GameFlowScript.h Clean up GameFlowScript. 2021-08-07 19:13:36 +01:00
GameLogicScript.cpp Don't register Color in GameScript (it's in GameFlow now). 2021-08-07 19:14:11 +01:00
GameLogicScript.h Make m_levelFuncs an unordered_set, as these seem to be the proper structure to use when the key IS the value. 2021-08-06 16:47:24 +01:00
GameScriptAIObject.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptAIObject.h Delete copy operations for GameScriptAIObject, GameScriptCameraInfo, GameScriptSinkInfo and GameScriptSoundSourceInfo - this can be changed later, but for now is a safety measure since we hold a reference, which means copying these would take some extra thought. 2021-07-26 18:25:50 +01:00
GameScriptAudioTrack.cpp 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. 2021-07-28 18:44:24 +01:00
GameScriptAudioTrack.h 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. 2021-07-28 18:44:24 +01:00
GameScriptCameraInfo.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptCameraInfo.h Delete copy operations for GameScriptAIObject, GameScriptCameraInfo, GameScriptSinkInfo and GameScriptSoundSourceInfo - this can be changed later, but for now is a safety measure since we hold a reference, which means copying these would take some extra thought. 2021-07-26 18:25:50 +01:00
GameScriptColor.cpp Clean up GameScriptColor. 2021-08-07 19:03:27 +01:00
GameScriptColor.h Clean up GameScriptColor. 2021-08-07 19:03:27 +01:00
GameScriptInventoryObject.cpp Fix indentation. 2021-08-03 15:16:55 +01:00
GameScriptInventoryObject.h Remove accidental scope specifier thingy. 2021-07-31 13:23:22 +01:00
GameScriptItemInfo.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptItemInfo.h Rearrange GameScriptItemInfo a bit. 2021-07-23 02:03:31 +01:00
GameScriptLevel.cpp Improve GameScriptLevel. 2021-08-07 19:20:17 +01:00
GameScriptLevel.h Improve GameScriptLevel. 2021-08-07 19:20:17 +01:00
GameScriptMeshInfo.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptMeshInfo.h Add m_temporary to GameScriptMeshInfo, as well as a constructor and destructor. 2021-07-23 02:04:47 +01:00
GameScriptMirror.cpp 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. 2021-07-28 18:44:24 +01:00
GameScriptMirror.h 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. 2021-07-28 18:44:24 +01:00
GameScriptNamedBase.h Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptPosition.cpp 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. 2021-07-28 18:44:24 +01:00
GameScriptPosition.h Add __tostring metamethod to GameScriptPosition, GameScriptRotation and GameScriptColor. 2021-07-23 02:06:50 +01:00
GameScriptRotation.cpp Add __tostring metamethod to GameScriptPosition, GameScriptRotation and GameScriptColor. 2021-07-23 02:06:50 +01:00
GameScriptRotation.h Add __tostring metamethod to GameScriptPosition, GameScriptRotation and GameScriptColor. 2021-07-23 02:06:50 +01:00
GameScriptSettings.cpp Add ErrorMode to GameScriptSettings (C++) and errorMode to settings (Lua). Call SetErrorMode in LoadGameFlowScript. 2021-08-06 16:44:37 +01:00
GameScriptSettings.h Add ErrorMode to GameScriptSettings (C++) and errorMode to settings (Lua). Call SetErrorMode in LoadGameFlowScript. 2021-08-06 16:44:37 +01:00
GameScriptSinkInfo.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptSinkInfo.h Delete copy operations for GameScriptAIObject, GameScriptCameraInfo, GameScriptSinkInfo and GameScriptSoundSourceInfo - this can be changed later, but for now is a safety measure since we hold a reference, which means copying these would take some extra thought. 2021-07-26 18:25:50 +01:00
GameScriptSkyLayer.cpp Improve GameScriptSkyLayer. 2021-08-07 19:06:22 +01:00
GameScriptSkyLayer.h Improve GameScriptSkyLayer. 2021-08-07 19:06:22 +01:00
GameScriptSoundSourceInfo.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameScriptSoundSourceInfo.h Delete copy operations for GameScriptAIObject, GameScriptCameraInfo, GameScriptSinkInfo and GameScriptSoundSourceInfo - this can be changed later, but for now is a safety measure since we hold a reference, which means copying these would take some extra thought. 2021-07-26 18:25:50 +01:00
InventorySlots.h Add ObjectIDs.h. Add documentation comments to InventorySlots.h 2021-07-20 00:14:59 +01:00
LanguageScript.cpp Fix line endings 2020-12-21 13:16:29 -03:00
LanguageScript.h Removed test code; Removed scripts from project (they will be created by LD); Added some missing strings for inventory; Added scripting for puzzles; Removed some old code for scripting; 2021-06-23 05:58:24 +02:00
LuaHandler.cpp Change ExecuteScript and ExecuteString to return void and throw a TENScriptException on error. Remove my old comments which didn't really add info. Implement SetSettings. 2021-08-03 15:12:24 +01:00
LuaHandler.h Make MakeReadOnlyTable a member function of LuaHandler so that GameFlow can use it too. 2021-08-07 19:00:45 +01:00
ObjectIDs.h Add ObjectIDs.h. Add documentation comments to InventorySlots.h 2021-07-20 00:14:59 +01:00
ScriptAssert.cpp Add ScriptWarn and SetErrorMode. 2021-08-06 16:43:01 +01:00
ScriptAssert.h Add ScriptWarn and SetErrorMode. 2021-08-06 16:43:01 +01:00