tModLoader  0.12 Alpha
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 Data Documentation

◆ serializerSettings

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