Signal variables
This blueprint proposes to introduce signal variables.
Signal variables are a set of any number of variables linked to signals which can be set and accessed through relevant functions in the signal script.
Variables are maintained between updates and can therefor be used to store specific signal information. Variables can also be accessed by any other signal so they can be used to augment communication between signals, in fact using variables makes communication between signals completely independent from the actual signal states.
Variables are identified by a number, but this number-key need not be consecutive.
Variables can hold integer values only.
A full set of functions for use in signal script will be made available.
The augmented communication between signals might well mean that more than one variable must be retrieved. Because of the compex processing of next_sig_lvar, which always includes a search for the next signal, functions have also been made available to directly use a signal ident. The advance is that the search need only to be executed once, all other information can be obtained directly by accessing the signal through its ident.
For full list of relevant functions, see the blueprint on additional signal script functions.
Discussion: http://
Roadmap: https:/
Blueprint information
- Status:
- Complete
- Approver:
- James Ross
- Priority:
- Medium
- Drafter:
- r.roeterdink
- Direction:
- Approved
- Assignee:
- r.roeterdink
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 1.3
- Started by
- r.roeterdink
- Completed by
- James Ross
Related branches
Related bugs
Sprints
Whiteboard
Implemented in X3863.