tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.ModLoader.Config.JsonDefaultValueAttribute Class Reference

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...

Inherits Attribute.

Public Member Functions

 JsonDefaultValueAttribute (string json)
 

Public Attributes

string json
 

Detailed Description

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.