If you want to use the raildriver with TSW, a first interface has been created by Gandalf a member of the French community railsim.fr https://www.railsim-fr.com/forum/index.php?/files/file/1682-train-sim-world-raildriver-interface/