TombEngine/TR5Main/Scripting
hispidence ead31e63f2 Replace WarningsAsErrors usage with ScriptAssert usage.
For recoverable errors, add some recovery behaviour and logging so a level designer can see in the log what was done as a result of the error.

Warn about default behaviour if no callbacks are added.
2021-08-04 16:51:28 +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 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
GameFlowScript.h 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
GameLogicScript.cpp Replace WarningsAsErrors usage with ScriptAssert usage. 2021-08-04 16:51:28 +01:00
GameLogicScript.h Remove AddLuaId and GetItemById. 2021-08-04 16:21:00 +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 Make color getters const. 2021-07-24 12:26:48 +01:00
GameScriptColor.h Make color getters const. 2021-07-24 12:26:48 +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 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
GameScriptLevel.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
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 Rename GameScriptSettings to Settings on the Lua side. 2021-08-03 15:16:06 +01:00
GameScriptSettings.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
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 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
GameScriptSkyLayer.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
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 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
ObjectIDs.h Add ObjectIDs.h. Add documentation comments to InventorySlots.h 2021-07-20 00:14:59 +01:00
ScriptAssert.cpp Add ScriptAssert. 2021-08-04 16:18:52 +01:00
ScriptAssert.h Add ScriptAssert. 2021-08-04 16:18:52 +01:00