tModLoader v0.11.8.9
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...

+ 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

◆ JsonDefaultValueAttribute()

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

Member Data Documentation

◆ json

string Terraria.ModLoader.Config.JsonDefaultValueAttribute.json