--trainlogic.lua--controls train entities stuff about connecting/disconnecting/colliding trains and other thingslocal benchmark=falselocal bm={}local bmlt=0local bmsteps=0local bmstepint=200
atprintbm=function(action, ta)if not benchmark then return endlocal t=(os.clock()-ta)*1000