tModLoader v2024.11
A mod to make and play Terraria mods
DefaultListValueAttribute Class Reference

Defines the default value to be added when using the ModConfig UI to add elements to a Collection (List, Set, or Dictionary value). Works the same as System.ComponentModel.DefaultValueAttribute, but can't inherit from it because it would break when deserializing any data structure annotated with it. More...

Inherits Attribute.

Public Member Functions

 DefaultListValueAttribute (bool value)
 
 DefaultListValueAttribute (byte value)
 
 DefaultListValueAttribute (char value)
 
 DefaultListValueAttribute (double value)
 
 DefaultListValueAttribute (float value)
 
 DefaultListValueAttribute (int value)
 
 DefaultListValueAttribute (long value)
 
 DefaultListValueAttribute (object value)
 
 DefaultListValueAttribute (short value)
 
 DefaultListValueAttribute (string value)
 
 DefaultListValueAttribute (Type type, string value)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Protected Member Functions

void SetValue (object value)
 

Properties

virtual object Value [get]
 

Detailed Description

Defines the default value to be added when using the ModConfig UI to add elements to a Collection (List, Set, or Dictionary value). Works the same as System.ComponentModel.DefaultValueAttribute, but can't inherit from it because it would break when deserializing any data structure annotated with it.