-
Notifications
You must be signed in to change notification settings - Fork 7
How develop mods using CommonAPI
kremnev8 edited this page Nov 20, 2021
·
1 revision
All features are written as self-contained modules (Inspired by R2API):
- By default NO modules are loaded.
- To use a module at the top of your BepInEx plugin class add an attribute
CommonAPISubmoduleDependency. That will ensure that specified modules are loaded. - Make sure you don't ask to load modules that you are not using.
- Trying to use an unloaded module will result in a exception.
There also non module utility classes. They can be used freely. Most of them are custom data structures like pool, registry, etc.