Would it be possible to make it so that if a scripter tries to access ll.SetTimerEvent / ll.SetMemoryLimit etc we would get a more useful error?
Note that we shouldn't have noop functions as these would show up while enumerating ll.*
---
Something akin to this using inheritance or metamethods: (whichever is more performant / doesnt cause a perf penalty; you're the language guru)
local RemovedTimerFunctions = { "SetTimerEvent" }
local RemovedTimeFunctions = { "ResetTime", "GetAndResetTime" }
ll = setmetatable(ll, {
__index = function(table, key)
if table.find(RemovedTimerFunctions, key) then
error("This function has been removed, please use LLTimers instead", 1)
elseif table.find(RemovedTimeFunctions, key) then
error("This function has been removed due to a conflict with LLTimers", 1)
end
end
})
ll.SetTimerEvent(0.5)