ArcanumLibModSystem
Central ModSystem that boots and shuts down ArcanumLib lifecycle: API registration, icon cache initialization, and service/clear cleanup on world unload.
What is it for?
- Registers
ICoreAPI,ICoreServerAPI, andICoreClientAPIwithArcanumServices. - Initializes
ImageIconCacheon the client. - Disposes
ImageIconCache, clearsCollectibleNameResolver, and shuts downArcanumServiceson unload.
Quick example
No consumer code is required. The system is auto-discovered by Vintage Story and loads early (ExecuteOrder = -1000).
Notes
- Loads on both sides (
ShouldLoadreturnstrue). ArcanumLibModSystem.Disposeruns when the world unloads; it does not destroy per-world data stores itself, but clears theArcanumServicesregistry, which lets services be garbage collected.