tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
Similar to DefaultValueAttribute but for reference types. It uses a json string that will be used populate this element when initialized. Defines the default value, expressed as json, to be used to populate an object with the NullAllowed attribute. Modders should only use this in conjuction with NullAllowed, as simply initializing the field with a default value is preferred. More...
Public Member Functions | |
JsonDefaultValueAttribute (string json) | |
Public Attributes | |
string | json |
Similar to DefaultValueAttribute but for reference types. It uses a json string that will be used populate this element when initialized. Defines the default value, expressed as json, to be used to populate an object with the NullAllowed attribute. Modders should only use this in conjuction with NullAllowed, as simply initializing the field with a default value is preferred.
Definition at line 96 of file ConfigAttributes.cs.
Terraria.ModLoader.Config.JsonDefaultValueAttribute.JsonDefaultValueAttribute | ( | string | json | ) |
Definition at line 99 of file ConfigAttributes.cs.
References Terraria.ModLoader.Config.JsonDefaultValueAttribute.json.
string Terraria.ModLoader.Config.JsonDefaultValueAttribute.json |
Definition at line 98 of file ConfigAttributes.cs.
Referenced by Terraria.ModLoader.Config.JsonDefaultValueAttribute.JsonDefaultValueAttribute().