Skip to content

Instantly share code, notes, and snippets.

View Ethan-Pixelate's full-sized avatar
🦵
pissing my pants rn

Ethan-Pixelate

🦵
pissing my pants rn
View GitHub Profile
@Ethan-Pixelate
Ethan-Pixelate / Class.lua
Created February 5, 2022 05:36
OOP in lua, not perfect at all but good enough lol
local function LightCopy(x)
local NewT = {}
for k,v in pairs(x) do NewT[k]=v end
return NewT
end
function class(ClassName, Template,Extend,NotGlobal)
if DEBUG_CLASS then
print(
"Creating "..