vlclua_read_meta_data( p_sd, L, p_input );/* This one is to be tested... */vlclua_read_custom_meta_data( p_sd, L, p_input );/* The duration is given in seconds, convert to microseconds */lua_getfield( L,-1,"duration");if(lua_isnumber( L,-1) ) input_item_SetDuration...
LuaValue v = *pv;if(v.isNumber() || v.isString()) { L->stack_.copy(idx); }elseif(v.isBool()) { lua_pushstring(L, (lua_toboolean(L, idx) ?"true":"false")); }elseif(v.isNil()) { lua_pushliteral(L,"nil"); }else{ lua_pushfstring(L,"%s: %p", luaL_typename(L, ...
importorg.luaj.vm2.LuaValue;//导入方法依赖的package包/类@OverridepublicfinalLuaValuecall(LuaValue text, LuaValue x, LuaValue y, LuaValue color){if(!text.isstring() || !x.isnumber() || !y.isnumber() || !color.isnumber())returnNIL;returnLuaInteger.valueOf(mc.fontRenderer.drawString(text...
{inti =1;// in lua, the first element is 1, not 0. Like Eiffel haha.LuaRef element = targets[i];while(!element.isNil()) { LuaRef name = element[1]; LuaRef amount = element[2];if(!name.isString() || !amount.isNumber()) { g_logger->logError("QuestLoader","Quest ["+ fil...
LuaPlus::LuaObject aData = colorData["a"];if(!rData.IsNumber() || !gData.IsNumber() || !bData.IsNumber() || !aData.IsNumber()) {return(false); } F32 r =static_cast<F32>(rData.GetNumber()); F32 g =static_cast<F32>(gData.GetNumber()); ...