Are "globals" global?

Place to get help with not working mods / modding interface.
Post Reply
apriori
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

Are "globals" global?

Post by apriori »

Are vars in global[] global amongst all mods or each mod has got its own globals?
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Are "globals" global?

Post by daniel34 »

Each mod has its own global. You are not able to access globals that other mods are using, but you also don't need to prefix your own globals as collisions can't happen.
quick links: log file | graphical issues | wiki

apriori
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

Re: Are "globals" global?

Post by apriori »

daniel34 wrote:you also don't need to prefix your own globals as collisions can't happen
That's it, thanks. =)
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

Post Reply

Return to “Modding help”