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
Lwmte
40d59cddf9 Tier 3 2021-11-16 15:00:17 +03:00
Lwmte
7f088caeda Tier 2 2021-11-16 14:52:52 +03: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
f83add0f4c Float->short to fix a warning. 2021-08-21 00:16:22 +01:00
hispidence
10419d15a8 Fixed some GameFlowScript.cpp warnings:
Remove SkyVelocity1 and SkyVelocity2 - they weren't being used.
Change a loop var to a size_t.
Make GameScriptInventoryObject.yOffset a short.
2021-08-20 02:42:47 +01:00
hispidence
2d1e2d97b9 Add default member initialisers, SetSlot function, and default constructor for GameScriptInventoryObject.
Expose default constructor to Lua API. Use SetSlot as a sol::property instead of accessing the member directly.

Update documentation.
2021-08-11 14:38:24 +01:00
hispidence
25d90c9820 Refactor and add documenation for GameScriptInventoryObject. 2021-08-11 01:23:07 +01:00
hispidence
4fb42ab59b Give InventoryObject some documentation. Rename "name" to "nameKey". 2021-08-09 20:01:05 +01:00
hispidence
15da537331 Clean GameScriptInventoryObject a bit. 2021-08-09 00:22:58 +01:00
hispidence
61d9e00e63 Change InventoryAdd/Remove/GetCount/SetCount and GameScriptInventoryObject to use ItemEnumPair. 2021-08-09 00:01:40 +01:00
hispidence
9456f91f98 Fix indentation. 2021-08-03 15:16:55 +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