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