Commit graph

6 commits

Author SHA1 Message Date
hispidence
6f382a08e9 Refactor and add documenation for GameScriptInventoryObject. 2021-08-11 01:23:07 +01:00
hispidence
6257cf49b7 Give InventoryObject some documentation. Rename "name" to "nameKey". 2021-08-09 20:01:05 +01:00
hispidence
4eba60c941 Clean GameScriptInventoryObject a bit. 2021-08-09 00:22:58 +01:00
hispidence
d3742cb87e Change InventoryAdd/Remove/GetCount/SetCount and GameScriptInventoryObject to use ItemEnumPair. 2021-08-09 00:01:40 +01:00
hispidence
529e8f9a69 Fix indentation. 2021-08-03 15:16:55 +01:00
hispidence
5562667f98 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