mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
Remove GetLara as the Lara object is easier to use.
Add documentation for the Lara object.
This commit is contained in:
parent
cd16268e19
commit
c8de277d44
2 changed files with 8 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue