static int ComponentParamList(RealStatePtr L) { string parameterName; string componmentName; try { int paramCount = LuaAPI.lua_gettop(L); parameterName = LuaAPI.lua_tostring(L, 2); componmentName = LuaAPI.lua_tostring(L, 3); } catch (Exception e) { return(LuaAPI.luaL_error(L, "c# exception:" + e)); } contents.ComponetParameterList(parameterName, componmentName); if (recordedBehaviour) { callRecords.Add(() => { contents.ComponetParameterList(parameterName, componmentName); }); } return(0); }