Terraria ModLoader  0.11.5
A framework for 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...

+ Inheritance diagram for Terraria.ModLoader.Config.JsonDefaultValueAttribute:
+ Collaboration diagram for Terraria.ModLoader.Config.JsonDefaultValueAttribute:

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.

Definition at line 96 of file ConfigAttributes.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.Config.JsonDefaultValueAttribute.JsonDefaultValueAttribute ( string  json)

Definition at line 99 of file ConfigAttributes.cs.

Member Data Documentation

string Terraria.ModLoader.Config.JsonDefaultValueAttribute.json

Definition at line 98 of file ConfigAttributes.cs.