MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Update

Method Update

LuaSTGPlus/LuaWrapper.cpp:312–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 struct WrapperImplement
311 {
312 static int Update(lua_State* L)LNOEXCEPT
313 {
314 Wrapper* p = static_cast<Wrapper*>(luaL_checkudata(L, 1, TYPENAME_BENTLASER));
315 if (!p->handle)
316 return luaL_error(L, "lstgBentLaserData was released.");
317 if (!lua_istable(L, 2))
318 return luaL_error(L, "invalid lstg object for 'Update'.");
319 lua_rawgeti(L, 2, 2); // self t(object) ??? id
320 size_t id = (size_t)luaL_checkinteger(L, -1);
321 lua_pop(L, 1);
322 if (!p->handle->Update(id, luaL_checkinteger(L, 3), (float)luaL_checknumber(L, 4)))
323 return luaL_error(L, "invalid lstg object for 'Update'.");
324 return 0;
325 }
326 static int Release(lua_State* L)LNOEXCEPT
327 {
328 Wrapper* p = static_cast<Wrapper*>(luaL_checkudata(L, 1, TYPENAME_BENTLASER));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected