Called when a train changes state (started to stopped and vice versa)
train
LuaTrain
old_state
defines.train_state
name
defines.events
tick
uint32