Moved all files to root.

This commit is contained in:
Pickle
2022-12-02 23:29:01 -05:00
committed by GitHub
parent ef83fba743
commit f70c477c8d
14 changed files with 1054 additions and 0 deletions

25
shared/main.lua Normal file
View File

@@ -0,0 +1,25 @@
Televisions = {}
function v3(coord)
return vector3(coord.x, coord.y, coord.z), coord.w
end
function DumpArray(obj, seen)
if type(obj) ~= 'table' then return obj end
if seen and seen[obj] then return seen[obj] end
local s = seen or {}
local res = setmetatable({}, getmetatable(obj))
s[obj] = res
for k, v in pairs(obj) do res[DumpArray(k, s)] = DumpArray(v, s) end
return res
end
function GetTelevision(coords)
for k,v in pairs(Televisions) do
if #(v3(v.coords) - v3(coords)) < 0.01 then
return k, v
end
end
end
Channels = DumpArray(Config.Channels)