BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

String keys for RailDictionary

Go down

String keys for RailDictionary Empty String keys for RailDictionary

Post by zbx1425 on Wed Feb 19, 2020 2:42 am

Sir Chris,
I wonder if it is possible to allow String as keys for RailDictionary, just like BVETs5? Using strings instead of just numbers will probably enable developers to manage their tracks in a tidier way. Given the amount of track in a normal route, the performance impact should be minor.
Also, I personally think, if string keys are also allowed on FreeObjs, and other things that are so far number-indexed, developers can save a lot of time trying to match the numbers with the objects! Although they can be acheived with preprocessor command $Sub, I still think a built-in support will make things easier.
Thanks!
zbx1425
zbx1425

Posts : 125
Join date : 2017-08-18
Location : China

https://zbx1425.tk

Back to top Go down

String keys for RailDictionary Empty Re: String keys for RailDictionary

Post by leezer3 on Wed Feb 19, 2020 10:47 pm

The short answer is dunno Razz

Longer answer-
The current route parser is an absolute minefield. I can see immediate problems with cracks, and a fundamental change like this isn't as easy as it sounds.

After having got the object parsers into shared plugins, one of the next major targets is to do the same for the route parser.
Once this is done, further work on the internals is on the agenda, but I don't want to make any promises on this as it may take somewhat of a while, and may break horribly in the process.....

leezer3

Posts : 1601
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum