Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Modder Guide/APIs/Config
(view source)
Revision as of 17:37, 15 September 2018
7 bytes removed
,
17:37, 15 September 2018
→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
;
}
}
}
}
Pathoschild
translators
8,403
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version