mtt.lua 442 B

12345678910111213141516
  1. if doc then
  2. mtt.register("wagon information formspec", function(cb)
  3. local player = mtt.join_player("singleplayer")
  4. for k in pairs(advtrains_doc_integration.prototypes) do
  5. print("Found wagon prototype: " .. k)
  6. doc.show_entry("singleplayer", "advtrains_wagons", k, true)
  7. end
  8. player:leave()
  9. cb()
  10. end)
  11. end
  12. mtt.register("wagon datasheet generation", function(cb)
  13. advtrains_doc_integration.write_all_wagons_as_latex()
  14. cb()
  15. end)