2024-06-18 20:21:12 -05:00
|
|
|
# Legacy Code Support Functions
|
|
|
|
|
2024-08-06 18:56:00 -05:00
|
|
|
## `vl_legacy.deprecated(description, replacement)`
|
2024-06-18 20:21:12 -05:00
|
|
|
|
2024-08-06 18:56:00 -05:00
|
|
|
Creates a wrapper that logs calls to deprecated function.
|
2024-06-18 20:21:12 -05:00
|
|
|
|
|
|
|
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`
|
2024-06-18 20:21:12 -05:00
|
|
|
|
|
|
|
Allows automatic conversion of items.
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
* `old`: Itemstring to be converted
|
|
|
|
* `new`: New item string
|
|
|
|
|