I am trying to make a library to simplify scripting. I was thinking, I could make a table shared, and then add the functions inside the table. Like this:
shared.runtime = {
["example"] = function()
print('example')
end
}
Is this the correct way? Is there a simpler way to do this? I don't want people to have to type:
shared.runtime.function example()
Is that wrong too? I'm not very good at scripting... |