mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 04:26:42 +03:00
Remove GetLara as the Lara object is easier to use.
Add documentation for the Lara object.
This commit is contained in:
parent
ece2dd9c38
commit
3b2775203b
2 changed files with 8 additions and 10 deletions
|
@ -161,11 +161,6 @@ template <bool temp> static std::unique_ptr<GameScriptItemInfo> Create(
|
|||
return ptr;
|
||||
}
|
||||
|
||||
std::unique_ptr<GameScriptItemInfo> static GetLara()
|
||||
{
|
||||
return std::make_unique<GameScriptItemInfo>(Lara.itemNumber, false);
|
||||
}
|
||||
|
||||
void GameScriptItemInfo::Register(sol::state* state)
|
||||
{
|
||||
state->new_usertype<GameScriptItemInfo>(LUA_CLASS_NAME,
|
||||
|
@ -186,10 +181,6 @@ void GameScriptItemInfo::Register(sol::state* state)
|
|||
// @function ItemInfo:DisableItem
|
||||
"Disable", &GameScriptItemInfo::DisableItem,
|
||||
|
||||
/// Create a GameScriptItemInfo representing the Lara object.
|
||||
// @function ItemInfo.GetLara
|
||||
"GetLara", GetLara,
|
||||
|
||||
/// (@{ObjID}) object ID
|
||||
// @mem objectID
|
||||
"objectID", sol::property(&GameScriptItemInfo::GetObjectID, &GameScriptItemInfo::SetObjectID),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue