12-18-2015, 04:17 PM
Just did some testing (also from working with plugins for a bit).
Any .lua files in the top level folder will be able to communicate. I ASSUME that they are all being compiled as if is they were one file, so they can share function calls and variables.
However, anything inside of nested folders does not seem to automatically get loaded in. You SHOULD be able to use require. I see no reason at all why it wouldn't work, but I've seen weirder things in the past.
Any .lua files in the top level folder will be able to communicate. I ASSUME that they are all being compiled as if is they were one file, so they can share function calls and variables.
However, anything inside of nested folders does not seem to automatically get loaded in. You SHOULD be able to use require. I see no reason at all why it wouldn't work, but I've seen weirder things in the past.