mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Expose K_GetGardenTop to Lua
This commit is contained in:
parent
2e01f9b3b4
commit
d9f7187ffc
1 changed files with 11 additions and 0 deletions
|
|
@ -4438,6 +4438,16 @@ static int lib_kIsHoldingDownTop(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int lib_kGetGardenTop(lua_State *L)
|
||||||
|
{
|
||||||
|
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
INLEVEL
|
||||||
|
if (!player)
|
||||||
|
return LUA_ErrInvalid(L, "player_t");
|
||||||
|
LUA_PushUserdata(L, K_GetGardenTop(player), META_MOBJ);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
static int lib_kGetKartSpeed(lua_State *L)
|
static int lib_kGetKartSpeed(lua_State *L)
|
||||||
{
|
{
|
||||||
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
player_t *player = *((player_t **)luaL_checkudata(L, 1, META_PLAYER));
|
||||||
|
|
@ -4961,6 +4971,7 @@ static luaL_Reg lib[] = {
|
||||||
{"K_WaterSkip",lib_kWaterSkip},
|
{"K_WaterSkip",lib_kWaterSkip},
|
||||||
{"K_IsRidingFloatingTop",lib_kIsRidingFloatingTop},
|
{"K_IsRidingFloatingTop",lib_kIsRidingFloatingTop},
|
||||||
{"K_IsHoldingDownTop",lib_kIsHoldingDownTop},
|
{"K_IsHoldingDownTop",lib_kIsHoldingDownTop},
|
||||||
|
{"K_GetGardenTop",lib_kGetGardenTop},
|
||||||
{"K_GetKartSpeed",lib_kGetKartSpeed},
|
{"K_GetKartSpeed",lib_kGetKartSpeed},
|
||||||
{"K_GetKartAccel",lib_kGetKartAccel},
|
{"K_GetKartAccel",lib_kGetKartAccel},
|
||||||
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
{"K_GetKartFlashing",lib_kGetKartFlashing},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue