tModLoader v2024.08
A mod to make and play Terraria mods
JsonDefaultListValueAttribute Class Reference

Similar to DefaultListValueAttribute but for reference types. It uses a json string that will be used populate new instances list elements. Defines the default value, expressed as json, to be added when using the ModConfig UI to add elements to a Collection (List, Set, or Dictionary value). More...

Inherits Attribute.

Public Member Functions

 JsonDefaultListValueAttribute (string json)
 

Properties

string Json [get]
 

Detailed Description

Similar to DefaultListValueAttribute but for reference types. It uses a json string that will be used populate new instances list elements. Defines the default value, expressed as json, to be added when using the ModConfig UI to add elements to a Collection (List, Set, or Dictionary value).