Module advtrains_doc_integration
Entry point.
Functions
| get_translator () | Gets the translator for the mod. |
| register_on_prototype_loaded (callback) | Register a callback that will be run when a prototype becomes available. |
| write_wagon_info_as_latex (itemname) | Write a wagon datasheet to a LaTeX file in the world path. |
| write_all_wagons_as_latex () | Write a wagon datasheet for each wagon using write_wagon_info_as_latex. |
Functions
- get_translator ()
-
Gets the translator for the mod.
This is a wrapper around
core.get_translator.Returns:
- Translator.
- Plural translator.
- register_on_prototype_loaded (callback)
-
Register a callback that will be run when a prototype becomes available.
Parameters:
- callback function The callback to run when the prototype becomes available. The callback function is passed the itemname and the prototype of the wagon.
- write_wagon_info_as_latex (itemname)
-
Write a wagon datasheet to a LaTeX file in the world path.
Parameters:
- itemname string The item name of the wagon prototype.
- write_all_wagons_as_latex ()
- Write a wagon datasheet for each wagon using write_wagon_info_as_latex.