20 lines
527 B
Markdown
Raw Normal View History

# Legacy Code Support Functions
2024-08-06 18:56:00 -05:00
## `vl_legacy.deprecated(description, replacement)`
2024-08-06 18:56:00 -05:00
Creates a wrapper that logs calls to deprecated function.
Arguments:
* `description`: The text logged when the deprecated function is called.
* `replacement`: The function that should be called instead. This is invoked passing
along the parameters exactly as provided.
2024-08-06 18:56:00 -05:00
## `vl_legacy.register_item_conversion`
Allows automatic conversion of items.
Arguments:
* `old`: Itemstring to be converted
* `new`: New item string