mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Remove control lock functions as they are unfinished
This commit is contained in:
parent
63658ef049
commit
5c0c99418b
4 changed files with 0 additions and 27 deletions
|
@ -51,7 +51,6 @@ Lua API changes:
|
|||
* Add Flow:EnableLoadSave() function to disable savegames.
|
||||
* Add Flow:EnablePointFilter() function to disable bilinear filtering.
|
||||
* Add Lara:GetAmmoType() function to read the ammo that player is using.
|
||||
* Add Lara:GetControlLock() and Lara:SetControlLock() functions to handle controls locking.
|
||||
* Add Moveable:GetEndFrame() function to get the end frame number of a moveable's active animation.
|
||||
* Add View.GetAspectRatio() function to get the screen resolution's aspect ratio.
|
||||
* Add Logic.HandleEvent() function to call node events.
|
||||
|
|
|
@ -100,8 +100,6 @@ static constexpr char ScriptReserved_SetStamina[] = "SetStamina";
|
|||
static constexpr char ScriptReserved_GetAirborne[] = "GetAirborne";
|
||||
static constexpr char ScriptReserved_SetAirborne[] = "SetAirborne";
|
||||
static constexpr char ScriptReserved_GetAmmoType[] = "GetAmmoType";
|
||||
static constexpr char ScriptReserved_GetControlLock[] = "GetControlLock";
|
||||
static constexpr char ScriptReserved_SetControlLock[] = "SetControlLock";
|
||||
static constexpr char ScriptReserved_GetAmmoCount[] = "GetAmmoCount";
|
||||
static constexpr char ScriptReserved_GetVehicle[] = "GetVehicle";
|
||||
static constexpr char ScriptReserved_GetTarget[] = "GetTarget";
|
||||
|
|
|
@ -128,26 +128,6 @@ int LaraObject::GetStamina() const
|
|||
return lara->Status.Stamina;
|
||||
}
|
||||
|
||||
/// Set control lock. All controls will be locked, however, they are still available to read in Lua scripts.
|
||||
// @function LaraObject:SetControlLock
|
||||
// @tparam bool whether set or not set control lock.
|
||||
// @usage
|
||||
// Lara:SetControlLock(true)
|
||||
void LaraObject::SetControlLock(bool value)
|
||||
{
|
||||
GetLaraInfo(m_item)->Control.Locked = value;
|
||||
}
|
||||
|
||||
/// Get control lock for Lara.
|
||||
// @function LaraObject:GetControlLock
|
||||
// @treturn bool current control lock value
|
||||
// @usage
|
||||
// local areControlsLocked = Lara:GetControlLock()
|
||||
bool LaraObject::GetControlLock() const
|
||||
{
|
||||
return GetLaraInfo(m_item)->Control.Locked;
|
||||
}
|
||||
|
||||
/// Get the moveable's airborne status
|
||||
// @function Moveable:GetAirborne
|
||||
// @treturn (bool) true if Lara state must react to aerial forces.
|
||||
|
@ -421,8 +401,6 @@ void LaraObject::Register(sol::table& parent)
|
|||
ScriptReserved_GetStamina, &LaraObject::GetStamina,
|
||||
ScriptReserved_GetAirborne, &LaraObject::GetAirborne,
|
||||
ScriptReserved_SetAirborne, &LaraObject::SetAirborne,
|
||||
ScriptReserved_SetControlLock, &LaraObject::SetControlLock,
|
||||
ScriptReserved_GetControlLock, &LaraObject::GetControlLock,
|
||||
ScriptReserved_UndrawWeapon, &LaraObject::UndrawWeapon,
|
||||
ScriptReserved_ThrowAwayTorch, &LaraObject::ThrowAwayTorch,
|
||||
ScriptReserved_GetHandStatus, &LaraObject::GetHandStatus,
|
||||
|
|
|
@ -44,8 +44,6 @@ public:
|
|||
int GetWet() const;
|
||||
[[nodiscard]] bool GetAirborne() const;
|
||||
void SetAirborne(bool newAirborne);
|
||||
bool GetControlLock() const;
|
||||
void SetControlLock(bool value);
|
||||
std::unique_ptr<Moveable> GetVehicle() const;
|
||||
std::unique_ptr<Moveable> GetTarget() const;
|
||||
HandStatus GetHandStatus() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue