Changes

Jump to navigation Jump to search
→‎Config model: change example from float to more common int
Line 10: Line 10:  
{
 
{
 
   public bool ExampleBoolean { get; set; }
 
   public bool ExampleBoolean { get; set; }
   public float ExampleFloat { get; set; }
+
   public int ExampleNumber { get; set; }
 
}
 
}
 
</source>
 
</source>
Line 18: Line 18:  
{
 
{
 
   "ExampleBoolean": false,
 
   "ExampleBoolean": false,
   "ExampleFloat": 0
+
   "ExampleNumber": 0
 
}
 
}
 
</source>
 
</source>
Line 28: Line 28:  
{
 
{
 
   public bool ExampleBoolean { get; set; } = true;
 
   public bool ExampleBoolean { get; set; } = true;
   public float ExampleFloat { get; set; } = 0.5f;
+
   public int ExampleNumber { get; set; } = 5;
 
}
 
}
 
</source>
 
</source>
Line 38: Line 38:  
{
 
{
 
   public bool ExampleBoolean { get; set; }
 
   public bool ExampleBoolean { get; set; }
   public float ExampleFloat { get; set; }
+
   public int ExampleNumber { get; set; }
    
   public ModConfig()
 
   public ModConfig()
 
   {
 
   {
 
       this.ExampleBoolean = true;
 
       this.ExampleBoolean = true;
       this.ExampleFloat = 0.5f;
+
       this.ExampleNumber = 5;
 
   }
 
   }
 
}
 
}
translators
8,403

edits

Navigation menu