| 354 | return 0; |
| 355 | } |
| 356 | static int CollisionCheck(lua_State* L)LNOEXCEPT |
| 357 | { |
| 358 | Wrapper* p = static_cast<Wrapper*>(luaL_checkudata(L, 1, TYPENAME_BENTLASER)); |
| 359 | if (!p->handle) |
| 360 | return luaL_error(L, "lstgBentLaserData was released."); |
| 361 | bool r = p->handle->CollisionCheck( |
| 362 | (float)luaL_checknumber(L, 2), |
| 363 | (float)luaL_checknumber(L, 3), |
| 364 | (float)luaL_optnumber(L, 4, 0), |
| 365 | (float)luaL_optnumber(L, 5, 0), |
| 366 | (float)luaL_optnumber(L, 6, 0), |
| 367 | lua_toboolean(L, 7) == 0 ? false : true |
| 368 | ); |
| 369 | lua_pushboolean(L, r); |
| 370 | return 1; |
| 371 | } |
| 372 | static int BoundCheck(lua_State* L)LNOEXCEPT |
| 373 | { |
| 374 | Wrapper* p = static_cast<Wrapper*>(luaL_checkudata(L, 1, TYPENAME_BENTLASER)); |
nothing calls this directly
no test coverage detected