rawset
Definition
-- @/=[C]:-1
function rawset(...)
Callers
@/lua/ge/extensions/flowgraph/link.lua
rawset(self.targetNode.pinIn, targetPin.name, sourcePin)
self.graph.links[self.id] = self
@/lua/ge/client/postFx/chromaticLens.lua
end
rawset(_G, "ChromaticLensPostFXCallbacks", chromaticLensPostFXCallbacks)
@/lua/ge/client/postFx/fog.lua
end
rawset(_G, "UnderwaterFogPostFxCallbacks", underwaterFogPostFxCallbacks)
@/lua/common/luaBinding.lua
if res ~= nil then
rawset(origmt, k, res)
return res
-- log('E', '', ' getter hit: ' .. tostring(k) .. ' = ' .. tostring(res))
rawset(origgetters, k, getFunc)
return getFunc(t)
if res ~= nil then
rawset(origmt, k, res)
return res
-- log('E', '', ' getter hit: ' .. tostring(k) .. ' = ' .. tostring(res))
rawset(origgetters, k, getFunc)
return getFunc()
if type(setFunc) == 'function' then
rawset(origsetters, k, setFunc)
setFunc(t, v)
if type(setFunc) == 'function' then
rawset(origsetters, k, setFunc)
setFunc(v)
local workgetters = rawget(workmt, 1) or {}
rawset(workmt, 1, workgetters)
local worksetters = rawget(workmt, 2) or {}
rawset(workmt, 2, worksetters)
mt = rawget(mt, 3)
if type(k) == "string" then
rawset(workmt, k, rawget(workmt, k) or v)
end
-- create simobject metatable
rawset(rawget(classtable, 1), "className", classtable.getClassName)
if next(rawget(classtable, 2)) == nil and rawget(classtable, 3) == nil then
if next(rawget(classtable, 2)) == nil and rawget(classtable, 3) == nil then
rawset(rawget(classtable, 2), 1, 0) -- disable newindex optimization when newindex table is empty
end
end
rawset(classtable, 4, classtable.getStaticDataFieldbyName)
rawset(classtable, 5, classtable.getDynDataFieldbyName)
rawset(classtable, 4, classtable.getStaticDataFieldbyName)
rawset(classtable, 5, classtable.getDynDataFieldbyName)
rawset(classtable, 6, classtable.setStaticDataFieldbyName)
rawset(classtable, 5, classtable.getDynDataFieldbyName)
rawset(classtable, 6, classtable.setStaticDataFieldbyName)
rawset(classtable, 7, classtable.setDynDataFieldbyName)
rawset(classtable, 6, classtable.setStaticDataFieldbyName)
rawset(classtable, 7, classtable.setDynDataFieldbyName)
rawset(classtable, '__index', __simObjectIndex) -- new getter
rawset(classtable, 7, classtable.setDynDataFieldbyName)
rawset(classtable, '__index', __simObjectIndex) -- new getter
rawset(classtable, '__newindex', __simObjectNewIndex) -- new setter
rawset(classtable, '__index', __simObjectIndex) -- new getter
rawset(classtable, '__newindex', __simObjectNewIndex) -- new setter
end
if next(rawget(v, 2)) == nil then -- no setters
rawset(v, 2, nil)
rawset(v, '__newindex', nil)
rawset(v, 2, nil)
rawset(v, '__newindex', nil)
end
if type(f) ~= 'number' then
rawset(plainGetters, f, getter)
if string.byte(f, 1) ~= 95 then
if string.byte(f, 1) ~= 95 then
rawset(v, f, nil)
end
if type(f) ~= 'number' then
rawset(plainGetters, f, getter)
end
end
rawset(v, '__index', plainGetters)
end
@/lua/common/libs/copas/copas/ftp.lua
if forwards[key] then ftp[key] = value return end
return rawset(self, key, value)
end,
@/lua/ge/extensions/editor/flowgraphEditor.lua
-- window creation
rawset(_G, '_flowgraph_createMgrWindow', function(C)
return {
@/lua/ge/extensions/flowgraph/manager.lua
end
rawset(s, key, value)
end,
@/lua/ge/client/lighting/basic/init.lua
end
rawset(_G, "BLMCallbacks", basicLightingCallbacks)
end
@/lua/ge/client/postFx/flash.lua
rawset(_G, "FlashFxCallbacks", flashFxCallbacks)
@/lua/ge/client/postFx/ssao.lua
end
rawset(_G, "SSAOPostFxCallbacks", ssaoPostFxCallbacks)
@/lua/ge/client/postFx.lua
end
rawset(_G, "postEffectCallbacks", postEffectCallbacks)
@/lua/ge/extensions/core/flowgraphManager.lua
-- node creation helper
rawset(_G, '_flowgraph_createNode', function(C)
return {
end)
rawset(_G, '_flowgraph_createStateNode', function(C)
return {
end)
rawset(_G, '_flowgraph_createModule', function(C)
return {
@/lua/ge/extensions/flowgraph/nodes/types/setVariable.lua
self.pinIn[name] = nil
rawset(self.pinIn, newName, pin2)
end
@/lua/ge/main.lua
simpleProfilerStop()
rawset(_G, '_levelLoadingReportGenerated', true)
end
if data then
rawset(_G, 'levelLoaded', data.levelLoaded)
end
@/lua/ge/client/lighting/advanced/init.lua
rawset(_G, "ADVLMCallbacks", advancedLightingCallbacks)
end
@/lua/ge/client/postFx/MotionBlurFx.lua
end
rawset(_G, "MotionBlurFXCallbacks", motionBlurFXCallbacks)
@/lua/ge/extensions/editor/veMain.lua
local _vEditor = M
rawset(_G, 'vEditor', _vEditor)
@/lua/ge/client/init.lua
local postFxModule = require("client/postFx")
rawset(_G, "postFxModule", postFxModule)
local postFxModule = require("client/postFx");
rawset(_G, "postFxModule", postFxModule)
-- TorqueScriptLua.exec("/core/scripts/client/postFx.cs")
@/lua/common/libs/luasocket/ltn12.lua
-- this version will prevent the global setter warning from showing:
rawset(_G, 'ltn12', _M)
end
@/lua/ge/server/server.lua
rawset(_G, 'gameConnection', {}) -- backward compatibility
rawset(_G, 'levelLoaded', levelDir)
rawset(_G, 'levelLoaded', nil)
rawset(_G, 'gameConnection', nil) -- backward compatibility
rawset(_G, 'levelLoaded', nil)
rawset(_G, 'gameConnection', nil) -- backward compatibility
if p then p:add("server.destroy.rawsets") end
@/lua/common/extensions.lua
-- rawset avoids global setter wrapper detections
rawset(_G, extName, nil)
-- also add to global scope:
rawset(_G, extName, m) -- rawset avoids global setter wrapper detections
@/lua/ge/extensions/scenario/scenarios.lua
setmetatable(scenario_race, backwardCompatibility)
rawset(_G, 'scenario_race', scenario_race) -- rawset avoids global setter wrapper detections
end
@/lua/ge/extensions/flowgraph/pin.lua
end
rawset(tbl, key, value)
end
@/lua/ge/client/postFx/fxaa.lua
end
rawset(_G, "FXAA_PostEffectCallbacks", fxaa_PostEffectCallbacks)
@/lua/ge/extensions/flowgraph/basenode.lua
self.pinInLocal[pin.name] = nil
rawset(self.pinIn,pin.name, nil)
else
pin.pinMode = 'hardcoded'
rawset(self.pinIn, pin.name, {
_hardcodedDummyPin = true,
pin.pinMode = 'normal'
rawset(self.pinIn, pin.name, nil)
if self._cdata then
@/lua/common/jbeam/slotSystem.lua
if k ~= "del" and v then
rawset(self, k, v)
table.insert(self._korder, k)
@/lua/ge/client/postFx/smaa.lua
rawset(_G, "SMAA_PostEffectCallbacks", smaaPostEffectCallbacks)
@/lua/objectpool/main.lua
function _setObj(objId, _obj)
rawset(_G, 'obj', _obj)
rawset(_G, 'objectId', objId)
rawset(_G, 'obj', _obj)
rawset(_G, 'objectId', objId)
rawset(_G, 'objData', objPool[objId])
rawset(_G, 'objectId', objId)
rawset(_G, 'objData', objPool[objId])
end
function __newIndexHandler(t, key, val)
rawset(rawget(_G, 'objData'), key, val)
end
@/lua/ge/client/postFx/dof.lua
end
rawset(_G, "DOFPostEffectCallbacks", dOFPostEffectCallbacks)
@/lua/ge/extensions/flowgraph/graph.lua
if link.virtualLink then
rawset(link.targetNode.pinIn, link.targetPin.name, link.sourceNode.pinOut[link.sourcePin.name])
end
if #mPin == 0 then
rawset(link.targetNode.pinIn, link.targetPin.name, nil)
end
else
rawset(link.targetNode.pinIn, link.targetPin.name, nil)
end
@/lua/ge/client/postFx/lightRay.lua
end
rawset(_G, "LightRayPostFXCallbacks", lightRayPostFXCallbacks)
@/lua/ge/client/postFx/GammaPostFX.lua
end
rawset(_G, "GammaPostFXCallbacks", gammaPostFXCallbacks)
@/lua/common/luaCore.lua
package.loaded[m] = nil
rawset(_G, m, nil)
end
@/lua/common/utils.lua
__newindex = function (t, key, val)
rawset(_G, key, val)
log('W', 'globals', debug.traceback('set new global variable: "' .. tostring(key) .. '" to "' .. tostring(val) .. '"', 2, 1, false))
collectgarbage('stop')
rawset(_G, '__prevgccount__', newgccount)
end
function timeprobeStart()
rawset(_G, '__prevtime__', os.clockhp())
end
if not __prevtime__ then
rawset(_G, '__prevtime__', os.clockhp())
else
if not __jitv__ then
rawset(_G, '__jitv__', require("jit.v"))
end
end
rawset(_G, '__jitprobeactive__', true)
__jitv__.on("-")
@/lua/common/libs/copas/copas/smtp.lua
if forwards[key] then smtp[key] = value return end
return rawset(self, key, value)
end,
@/lua/ge/extensions/tech/rawLidar.lua
]]
rawset(_G, '__rawLidar_cdef', true)
end
@/lua/ge/client/lighting/advanced/lightViz.lua
end
rawset(_G, "AL_DepthVisualizeCallbacks", al_DepthVisualizeCallbacks)
end
rawset(_G, "AL_NormalsVisualize", aL_NormalsVisualizeCallbacks)
end
rawset(_G, "AL_LightColorVisualizeCallbacks", aL_LightColorVisualizeCallbacks)
end
rawset(_G, "AL_LightSpecularVisualizeCallbacks", aL_LightSpecularVisualizeCallbacks)
end
rawset(_G, "AnnotationVisualizeCallbacks", annotationVisualizeCallbacks)
end
rawset(_G, "toggleLightVisualizer", toggleLightVisualizer)
rawset(_G, "toggleAnnotationVisualize",function (enable) toggleLightVisualizer("AnnotationVisualize", enable, "$AnnotationVisualizeVar") end)
rawset(_G, "toggleLightVisualizer", toggleLightVisualizer)
rawset(_G, "toggleAnnotationVisualize",function (enable) toggleLightVisualizer("AnnotationVisualize", enable, "$AnnotationVisualizeVar") end)
rawset(_G, "toggleDepthViz", function (enable) toggleLightVisualizer("AL_DepthVisualize", enable, "$AL_DepthVisualizeVar") end)
rawset(_G, "toggleAnnotationVisualize",function (enable) toggleLightVisualizer("AnnotationVisualize", enable, "$AnnotationVisualizeVar") end)
rawset(_G, "toggleDepthViz", function (enable) toggleLightVisualizer("AL_DepthVisualize", enable, "$AL_DepthVisualizeVar") end)
rawset(_G, "toggleNormalsViz", function (enable) toggleLightVisualizer("AL_NormalsVisualize", enable, "$AL_NormalsVisualizeVar") end)
rawset(_G, "toggleDepthViz", function (enable) toggleLightVisualizer("AL_DepthVisualize", enable, "$AL_DepthVisualizeVar") end)
rawset(_G, "toggleNormalsViz", function (enable) toggleLightVisualizer("AL_NormalsVisualize", enable, "$AL_NormalsVisualizeVar") end)
rawset(_G, "toggleLightColorViz", function (enable) toggleLightVisualizer("AL_LightColorVisualize", enable, "$AL_LightColorVisualizeVar") end)
rawset(_G, "toggleNormalsViz", function (enable) toggleLightVisualizer("AL_NormalsVisualize", enable, "$AL_NormalsVisualizeVar") end)
rawset(_G, "toggleLightColorViz", function (enable) toggleLightVisualizer("AL_LightColorVisualize", enable, "$AL_LightColorVisualizeVar") end)
rawset(_G, "toggleLightSpecularViz", function (enable) toggleLightVisualizer("AL_LightSpecularVisualize", enable, "$AL_LightSpecularVisualizeVar") end)
rawset(_G, "toggleLightColorViz", function (enable) toggleLightVisualizer("AL_LightColorVisualize", enable, "$AL_LightColorVisualizeVar") end)
rawset(_G, "toggleLightSpecularViz", function (enable) toggleLightVisualizer("AL_LightSpecularVisualize", enable, "$AL_LightSpecularVisualizeVar") end)
@/lua/common/libs/LuLPeg/lulpeg.lua
function getglobal(k) rawget(env, k) end
function setglobal(k, v) rawset(env, k, v) end
else