SMAPI
SMAPI copied to clipboard
Add analyzers to detect incorrect usage of Content Managers for vanilla assets
This Analyzer addition contains two new analyzers:
- AvoidContentManagerBadType
- This will trigger when DataLoader can load the given Data asset, and the type is wrong. This is an error and will cause exceptions at runtime anyway
- PreferContentManagerDataLoader
- This will trigger when DataLoader can load the given Data asset, regardless of type. This is Informative as its best practice, but the code will work anyway.