I hate requiring modules more than once.
I used to require everything once, and then register it under _G
. The obvious problem being that there is no typechecking. I want to require all these modules from an initialization script, so that means I cannot have a globals module to require with predefined registers. I really am out of options in my knowledge other than unwillingly giving up all intelisense and resorting back to _G
, which I am really not a fan of.
If anybody has any ideas for other workarounds / solutions please respond, as I am really at a standstill for my game until I get past this.