[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?
[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?
Archived author: functorism • Posted: 2024-01-05T14:19:41.836000+00:00
Original source
Yeah, sounds very reasonable. Unfortunatly it's in python2.
Archived author: functorism • Posted: 2024-01-05T14:29:09.806000+00:00
Original source
Was easy to port to python3 though
Archived author: functorism • Posted: 2024-01-05T15:53:37.719000+00:00
Original source
I ported the doc gen to python 3 and wrote a quick stub generator, and it mostly works fine. But a lot of important information lives in human written descriptions. And there isn't really any declarative information regarding the overloaded behavior of some functions, like RegisterEvent that can take for example both delay and delaytable.
Archived author: functorism • Posted: 2024-01-05T15:54:27.286000+00:00
Original source
I also had to parse out the inheritance from a description string, maybe that is more structured higher up in the change, but I tried working with the existing doc objects.
Archived author: functorism • Posted: 2024-01-05T16:09:03.143000+00:00
Original source
https://gist.github.com/functorism/1646c...181e7c4c7f
[Embed: Lua stubs Eluna]
Lua stubs Eluna. GitHub Gist: instantly share code, notes, and snippets.
https://gist.github.com/functorism/1646c...181e7c4c7f
Archived author: functorism • Posted: 2024-01-05T16:18:09.824000+00:00
Original source
https://www.azerothcore.org/pages/eluna/...Event.html
The protos must be used to produce a correct stub (not even sure yet if lua language server annotations support overloading), they're parsed from the docstring, and exposed in the current method doc as just strings, so that would have to be hoisted.
[Embed: WorldObject:RegisterEvent - Eluna]
API documentation for the WorldObject:RegisterEvent method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...Event.html
Archived author: functorism • Posted: 2024-01-05T17:10:05.139000+00:00
Original source
Unfortunately the protos are written incorrectly in many places and there's not a strict way in which they can be mapped to the documented arguments. https://www.azerothcore.org/pages/eluna/...vents.html
[Embed: Global:ClearUniqueCreatureEvents - Eluna]
API documentation for the Global:ClearUniqueCreatureEvents method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...vents.html
Archived author: functorism • Posted: 2024-01-05T17:17:22.094000+00:00
Original source
```
Proto references entry in Global ClearUniqueCreatureEvents but it doesn't exist in ['guid', 'instance_id', 'event_type']
Proto references entry in Global ClearUniqueCreatureEvents but it doesn't exist in ['guid', 'instance_id', 'event_type']
Proto references instance_id in Global ClearInstanceEvents but it doesn't exist in ['entry', 'event_type']
Proto references instance_id in Global ClearInstanceEvents but it doesn't exist in ['entry', 'event_type']
Proto references obj in WorldObject GetAngle but it doesn't exist in ['object', 'x', 'y']
```
Not that many places, should just be fixed.
Archived author: functorism • Posted: 2024-01-05T17:48:48.946000+00:00
Original source
This gist is now updated with stubs that based on what I can see works correctly with the overloading except for the places where the @proto string in the header file comment is wrong.
Archived author: Honey • Posted: 2024-01-05T17:52:38.476000+00:00
Original source
You seem to be very dedicated and I appreciate you working on the documentation. But i seem to completely miss the purpose of writing the docs in a different way than what already exists from the original Eluna repo.