-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document procedures for switches and random switches #105
Comments
Procedures Benefits of procedures
To use: switch_name() or switch_name(parameter_1, parameter_2, ... parameter_n) Explain the declaration of parameters in the procedure (callee). |
Looks like a good start :) |
Tyler has some real-world examples which are much better than any of mine. https://github.com/2TallTyler/improved_town_layouts/blob/master/src/functions.nml |
Don't forget to put a note about the 15bit return value :) |
Oof adventures in 15 bit values yes. |
Did we ever discuss var 1C? From the nfo docs: |
Var 1C is |
Procedures were added in #66
NML docs need updated to cover procedures.
Maybe directly in these pages?
https://newgrf-specs.tt-wiki.net/wiki/NML:Switch
https://newgrf-specs.tt-wiki.net/wiki/NML:Random_switch
The text was updated successfully, but these errors were encountered: