12345678910111213141516 |
- if doc then
- mtt.register("wagon information formspec", function(cb)
- local player = mtt.join_player("singleplayer")
- for k in pairs(advtrains_doc_integration.prototypes) do
- print("Found wagon prototype: " .. k)
- doc.show_entry("singleplayer", "advtrains_wagons", k, true)
- end
- player:leave()
- cb()
- end)
- end
- mtt.register("wagon datasheet generation", function(cb)
- advtrains_doc_integration.write_all_wagons_as_latex()
- cb()
- end)
|