Dan Albert 1991c4d48f Add decorator for tracking save compat.
Used to decorate functions or methods that have save compat code for a
given major version.

```
@has_save_compat_for(5)
def foo() -> None:
    ...
```

This function will raise an error at startup if it is decorated as
having save compat for a version other than the current major version of
the game. A new major version is the definition of a save compat break,
so keeping around the old compat code serves no purpose other than
hiding initialization bugs. The compat code and the decorator should be
removed in the branch raising the error.

(cherry picked from commit cd558daf5a601f64e98ad4ae2e7f6351be702632)
2021-08-08 12:52:04 -07:00
..
2021-08-08 12:52:04 -07:00
2021-08-08 12:52:04 -07:00
2021-08-08 12:52:04 -07:00
2021-08-08 12:52:04 -07:00
2021-02-22 20:55:51 +01:00
2021-08-08 12:52:04 -07:00