lolleko / gmod-typescript

Tool to generate typescript definitions for garrysmod.
MIT License
21 stars 7 forks source link

Realms info are lost in the declarations #9

Closed TIMONz1535 closed 2 years ago

TIMONz1535 commented 2 years ago

Information about realm of methods is lost in the declarations comments. Can you generate it automatically, right?

I mean: изображение

One plugin make a feature for drawing "realm" squares :) https://marketplace.visualstudio.com/items?itemName=venner.vscode-glua-enhanced изображение

Of course, it is enough just to write realm at the beginning of the method comment. изображение

https://wiki.facepunch.com/gmod/States Server Client Shared Menu Server and Menu Client and Menu Shared and Menu

lolleko commented 2 years ago

I actually scrape this information from the wiki, so it should be fairly easy for me to add it to the documentation string. I am not sure about the coloured squares. I want the declarations to be compatible with every editor, so I will probably just use [Client] [Server] ....

lolleko commented 2 years ago

Added in v0.3.0