Remove GetLara as the Lara object is easier to use.

Add documentation for the Lara object.
This commit is contained in:
hispidence 2021-08-12 20:14:02 +01:00
parent cd16268e19
commit c8de277d44
2 changed files with 8 additions and 10 deletions

View file

@ -633,9 +633,16 @@ std::unique_ptr<GameScriptSoundSourceInfo> GameScript::GetSoundSourceByName(std:
void GameScript::AssignItemsAndLara()
{
m_lua->set("Lara", GameScriptItemInfo(Lara.itemNumber, false)); // do we need GetLara if we have this?
m_lua->set("Lara", GameScriptItemInfo(Lara.itemNumber, false));
}
/*** Special objects
@section specialobjects
*/
/*** An @{ItemInfo} representing Lara herself.
@table Lara
*/
void GameScript::ResetVariables()
{
(*m_lua)["Lara"] = NULL;