TombEngine/TR5Main/Scripting
hispidence df11377a51 Make GetItemByName take a const ref, and make its error print the name of the item that could not be found.
Register GetItemByName in GameLogicScript instead of winmain. Register GameScriptColor too.

Define the lambdas passed to GameScriptItemInfo in terms of the actual functions we define. Functions that make a GameScriptItemInfo should pass false to make_unique (so the Lua object made does not control the lifetime of the ITEM_INFO).
2021-07-20 17:58:11 +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 FLARE_AGE constant; fix dynamic light intensity; fix release builds 2021-07-13 22:29:47 -05:00
GameFlowScript.h Remove 'typedef' from enums and structs. This was required in C, but in C++ all it does is generate thousands of warnings. 2021-07-18 15:22:15 +01:00
GameLogicScript.cpp Make GetItemByName take a const ref, and make its error print the name of the item that could not be found. 2021-07-20 17:58:11 +01:00
GameLogicScript.h Remove 'typedef' from enums and structs. This was required in C, but in C++ all it does is generate thousands of warnings. 2021-07-18 15:22:15 +01:00
GameScriptColor.cpp Add Register function and documentation for GameScriptColor, since it will be used in GameScriptMeshInfo. 2021-07-20 17:48:39 +01:00
GameScriptColor.h Make GameScriptColor::Register static. 2021-07-20 17:53:10 +01:00
GameScriptItemInfo.cpp Add concept of 'temporary' ItemInfo instances. These instances will kill the ITEM_INFO they reference when they are destroyed. This was previously the default behaviour. However, now that we're using things like GetItemByName, it makes more sense for ItemInfos to be non-owning by default. 2021-07-20 17:18:39 +01:00
GameScriptItemInfo.h Add concept of 'temporary' ItemInfo instances. These instances will kill the ITEM_INFO they reference when they are destroyed. This was previously the default behaviour. However, now that we're using things like GetItemByName, it makes more sense for ItemInfos to be non-owning by default. 2021-07-20 17:18:39 +01:00
GameScriptPosition.cpp Make GameScriptPosition and GameScriptRotation convertible from PHD_3POS and add a function which puts their position or rotation data into a PHD_3POS. Make their members public since their setters and getters were trivial, aside from some tests which seem to serve no purpose (an int can't be larger than INT_MAX or smaller than INT_MIN). 2021-07-03 23:07:21 +01:00
GameScriptPosition.h Add initial documentation comments for GameScriptPosition and GameScriptRotation. 2021-07-17 23:51:01 +01:00
GameScriptRotation.cpp Move documentation from GameScriptRotation.h to ".cpp. 2021-07-20 17:49:14 +01:00
GameScriptRotation.h Move documentation from GameScriptRotation.h to ".cpp. 2021-07-20 17:49:14 +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 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.h Add LuaHandler class to hold some repeated functionality between GameFlowScript and GameLogicScript. 2021-06-16 14:32:42 +01:00
ObjectIDs.h Add ObjectIDs.h. Add documentation comments to InventorySlots.h 2021-07-20 00:14:59 +01:00