Open sprunk opened 5 months ago
We could go with Spring
style global, so Widget
and Gadget
.
_G
should stay the same, that's just how Lua is.
We could go with Spring style global, so Widget and Gadget.
widget
and gadget
are already taken (consider how it's gadget:GameFrame etc like https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/luarules/gadgets/game_boombox_spawner.lua#L53 )
WidgetGlobal / GadgetGlobal then?
Another common source of confusion is that the synced luarules GG, the unsynced luarules GG, and maybe a further two GGs from un/synced LuaGaias all have the same name and role but are actually completely separate and cannot be used to share data with each other. GadgetGlobal
keeps this problem
They are completely separate entities but have a similar role and extremely similar name, see https://beyond-all-reason.github.io/spring/articles/wupget-communication
Caveats:
_G
seems to be a general Lua convention