Open T-Alanc opened 10 years ago
While we do need to add constants, most of them are not part of the core. For instance, MSG_...
constants are part of Lucas' lib.
I guess we'll be delaying this until #23 is done.
Will #23 change the structure of the documentation? If it will just add a field indicating which library it is part of then I would suggest moving forward and adding the necessary fields later. These libraries are included by default so there should be no harm in adding them to the main documentation now.
Ye, #23 will require a rework of the documentation structure as a whole. And since I'll be rewriting lots of it, I'll also use the time to make some bug fixes for which I'll be creating issues later.
On Mon, Oct 6, 2014 at 3:31 AM, T-Alanc notifications@github.com wrote:
Will #23 https://github.com/rmobis/WindBot-Docs/issues/23 change the structure of the documentation? If it will just add a field indicating which library it is part of then I would suggest moving forward and adding the necessary fields later. These libraries are included by default so there should be no harm in adding them to the main documentation now.
— Reply to this email directly or view it on GitHub https://github.com/rmobis/WindBot-Docs/issues/35#issuecomment-57978777.
You could go with loop displaying locals but in other hand some scripts might create global variables on the runtime by ommiting "local" suffix. It would require going thru source and/or checking it in runtime. That's job I can't imagine anyone would like to do voluntarily.
In other hand global scope should not be polluted like that at all and we should heve one container for global lib data like __GLOBAL_LIB = { A = { ... }, B = { ... } ... }
Add a list of constants for use in lua scripts. Nowhere on the documentation can you find a list of e.g. message types.
Example: MSG_STATUS = 0