mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-20 19:57:12 +01:00
Expose the fall time-rate manipulation API.
This commit is contained in:
parent
88b5859213
commit
5511a4f690
@ -836,4 +836,16 @@ CSStr GetDistrictNameEx(SQFloat x, SQFloat y)
|
||||
return _SC("Vice City");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
Uint16 GetFallTimer()
|
||||
{
|
||||
return _Func->GetFallTimer();
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void SetFallTimer(Uint16 rate)
|
||||
{
|
||||
_Func->SetFallTimer(rate);
|
||||
}
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
@ -464,6 +464,16 @@ CSStr GetDistrictName(const Vector2 & point);
|
||||
*/
|
||||
CSStr GetDistrictNameEx(SQFloat x, SQFloat y);
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Retrieve the fall timer rate.
|
||||
*/
|
||||
Uint16 GetFallTimer();
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Modify the fall timer rate.
|
||||
*/
|
||||
void SetFallTimer(Uint16 rate);
|
||||
|
||||
} // Namespace:: SqMod
|
||||
|
||||
#endif // _MISC_FUNCTIONS_HPP_
|
||||
|
@ -118,7 +118,9 @@ void Register_Misc(HSQUIRRELVM vm)
|
||||
.Func(_SC("ForceAllSelect"), &ForceAllSelect)
|
||||
.Func(_SC("CheckEntityExists"), &CheckEntityExists)
|
||||
.Func(_SC("GetDistrictName"), &GetDistrictName)
|
||||
.Func(_SC("GetDistrictNameEx"), &GetDistrictNameEx);
|
||||
.Func(_SC("GetDistrictNameEx"), &GetDistrictNameEx)
|
||||
.Func(_SC("GetFallTimer"), &GetFallTimer)
|
||||
.Func(_SC("SetFallTimer"), &SetFallTimer);
|
||||
|
||||
RootTable(vm).Bind(_SC("SqServer"), srvns);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user