Re: Doxygen Squirrel filter
Posted: 23 Jun 2015 08:17
I see the doxygen generated for libraries as documentation for those using the library. And in that case I'd exclude library.nut as it only contains methods accessible to OpenTTD, but not accessible for a GS script including the library. Eg. it would be misleading to show those methods to a library user.
Btw, AIs/GSs provide info.nut to register with OpenTTD. AI libraries and GS libraries do this registration in library.nut. Those filenames are enforced by OpenTTD.
For an AI/GS I don't see much point in a doxygen document. But if you would use one I assume it is the programmer of that AI/GS and then I don't think it matter much if info.nut is included or not. I would not include it as it is not part of the AI/GS. Those methods are not accessible from the AI/GS side. Only OpenTTD can call them. And their names are enforced by OpenTTD and documented in docs http://noai.openttd.org/api/ and http://nogo.openttd.org/api/ .
Btw, AIs/GSs provide info.nut to register with OpenTTD. AI libraries and GS libraries do this registration in library.nut. Those filenames are enforced by OpenTTD.
For an AI/GS I don't see much point in a doxygen document. But if you would use one I assume it is the programmer of that AI/GS and then I don't think it matter much if info.nut is included or not. I would not include it as it is not part of the AI/GS. Those methods are not accessible from the AI/GS side. Only OpenTTD can call them. And their names are enforced by OpenTTD and documented in docs http://noai.openttd.org/api/ and http://nogo.openttd.org/api/ .