tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.Config.ConfigManager Class Reference

Static Public Member Functions

static object AlternateCreateInstance (Type type)
 
static bool EnumerableEquals (IEnumerable a, IEnumerable b)
 
static ModConfig GeneratePopulatedClone (ModConfig original)
 
static T GetCustomAttribute< T > (PropertyFieldWrapper memberInfo, object item, object array)
 
static T GetCustomAttribute< T > (PropertyFieldWrapper memberInfo, Type type)
 
static IEnumerable< PropertyFieldWrapperGetFieldsAndProperties (object item)
 
static bool ObjectEquals (object a, object b)
 
static void SetPendingChanges (bool changes=true)
 
static Tuple< UIElement, UIElementWrapIt (UIElement parent, ref int top, PropertyFieldWrapper memberInfo, object item, int order, object list=null, Type arrayType=null, int index=-1)
 

Static Public Attributes

static readonly string ModConfigPath = Path.Combine(Main.SavePath, "ModConfigs")
 
static readonly JsonSerializerSettings serializerSettings
 
static readonly string ServerModConfigPath = Path.Combine(Main.SavePath, "ModConfigs", "Server")
 

Member Function Documentation

◆ GetCustomAttribute< T >() [1/2]

static T Terraria.ModLoader.Config.ConfigManager.GetCustomAttribute< T > ( PropertyFieldWrapper  memberInfo,
object  item,
object  array 
)
static
Type Constraints
T :Attribute 

◆ GetCustomAttribute< T >() [2/2]

static T Terraria.ModLoader.Config.ConfigManager.GetCustomAttribute< T > ( PropertyFieldWrapper  memberInfo,
Type  type 
)
static
Type Constraints
T :Attribute 

Member Data Documentation

◆ serializerSettings

readonly JsonSerializerSettings Terraria.ModLoader.Config.ConfigManager.serializerSettings
static
Initial value:
= new() {
Formatting = Formatting.Indented,
DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate,
ObjectCreationHandling = ObjectCreationHandling.Replace,
NullValueHandling = NullValueHandling.Ignore,
Converters = converters,
ContractResolver = new ReferenceDefaultsPreservingResolver()
}