Chatterino / chatterino2

Chat client for https://twitch.tv
MIT License
1.97k stars 442 forks source link

fix(luals-meta): generate globals in `c2` and echo @lua commands #5385

Closed Nerixyz closed 1 month ago

Nerixyz commented 2 months ago

Based on changes in #5383, I noticed the enums weren't in the c2 global and nested structs weren't supported. This PR applies the fix from #5383 and moves everything we declare into the c2 global. The rule of thumb is: everything that gets a declaration in the metadata should be prefixed with c2 (→ "interfaces" i.e. classes without functions don't have to be in c2).