Example #1
0
        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();
            }
        }
Example #2
0
 public DefReferenceConverter(DeserializerImpl deserializer, bool onDemand)
 {
     _onDemand         = onDemand;
     this.deserializer = deserializer;
 }