Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Modder Guide/APIs/Data
(view source)
Revision as of 17:39, 15 September 2018
7 bytes removed
,
17:39, 15 September 2018
→Data model
:
change example from float to more common int
Line 73:
Line 73:
{
{
public bool ExampleBoolean { get; set; }
public bool ExampleBoolean { get; set; }
−
public
float ExampleFloat
{ get; set; }
+
public
int ExampleNumber
{ get; set; }
}
}
</source>
</source>
Line 81:
Line 81:
{
{
"ExampleBoolean": false,
"ExampleBoolean": false,
−
"
ExampleFloat
": 0
+
"
ExampleNumber
": 0
}
}
</source>
</source>
Line 91:
Line 91:
{
{
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 101:
Line 101:
{
{
public bool ExampleBoolean { get; set; }
public bool ExampleBoolean { get; set; }
−
public
float ExampleFloat
{ get; set; }
+
public
int ExampleNumber
{ get; set; }
public ModData()
public ModData()
{
{
this.ExampleBoolean = true;
this.ExampleBoolean = true;
−
this.
ExampleFloat
=
0.5f
;
+
this.
ExampleNumber
=
5
;
}
}
}
}
Pathoschild
translators
8,437
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