Changes

Jump to navigation Jump to search
Line 7: Line 7:  
The ''config model'' is a C# class you create, with properties representing the settings you want to store. It can contain almost anything from a few boolean fields to a complex object graph (though you should try to keep things simple for players). Here's a simple config model:
 
The ''config model'' is a C# class you create, with properties representing the settings you want to store. It can contain almost anything from a few boolean fields to a complex object graph (though you should try to keep things simple for players). Here's a simple config model:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
class ModConfig
+
public sealed class ModConfig
 
{
 
{
 
   public bool ExampleBoolean { get; set; }
 
   public bool ExampleBoolean { get; set; }
Line 21: Line 21:  
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
These properties must be public.
    
===Default values===
 
===Default values===
528

edits

Navigation menu