-
Notifications
You must be signed in to change notification settings - Fork 34
Adding Configurations (P2)
ced777ric edited this page Feb 10, 2025
·
1 revision
Any class that can be serialized is a class that can be used for configurations.
For example:
{
public int MyConfigurableInt <a data-footnote-ref href="#user-content-fn-2">{ get; set; }</a> = 10; // 10 will be the default value
}Fields won't be serialized. Always use properties for the settings you want to be serialized.
If you only need a plugin with one configuration file and less customization, check out the following tutorial.
In case you need more flexibility or customization, the configuration system has you covered!
[^1]: It can have any name you want it to have
[^2]: Don't miss this part, it is important!
- Making Plugins
- Features
- Guides