public Defs(ILoader loader, bool createNetIDs = true) { _loader = loader; Deserializer = new DeserializerImpl(loader); Converters.Add(new DefReferenceConverter(Deserializer, false)); Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter()); Converters.Add(new DefConverter(LoadedResources)); Converters.Add(NonResourcesWithVariables.Instance); Converters.Add(TemplateVariableConverter.Instance); Converters.Add(TypeConverter.Instance); if (createNetIDs) { CreateNetIDs(); } }
public DefReferenceConverter(DeserializerImpl deserializer, bool onDemand) { _onDemand = onDemand; this.deserializer = deserializer; }