This is not production ready but is functional for internal testing. It still has some things that need work therefore the pull request is for the beta branch.
Improvements:
Improved Logic for station arrival / departure
Further improved logging
Logging now is aware of message severity and appropriately logs messages according to debug level.
Improved clarity of many logging statements.
Initial Config.ini implementation
User definable debug level
User customizable fuel warning levels
Refactoring
Removed several sections of commented out code that appear to be unneeded / superseded
Further Refactoring to split train methods and station methods into their respective classes
Reworked several large blocks of code into their own distinctly defined functions
Moved obvious debugging code blocks into their own subclass for better code readability
Further reworked the fuel warning system to convert largely duplicated code into usable methods.
Comments
Lots of code comments :)
Currently Broken
~Automatic Horn / Bell code on station arrival / departure.~ Self inflicted :) Now fixed.
~I need to study this a bit. Not quite sure where the fault is yet. I implemented your code from the main branch but something just isn't right quite yet.~
Goals
Improved direction checking
Not sure if its possible but there may be a better way to keep track of this. Perhaps a list of stations and their "East" / "West" counterpart and use that to determine the logical direction to travel. May still need an initial check like what is currently being done on the initial activation...
Custom user interface
Unity is weird and i need to study some code to figure out how to do this or if it will have to wait for another release.
This is not production ready but is functional for internal testing. It still has some things that need work therefore the pull request is for the beta branch.
Improvements:
Currently Broken
Goals