public DeserializerImpl(ILoader loader) { Loader = loader; LoadedDefs = new LoadedDefsHolder(); Serializer = new JsonSerializer { TypeNameHandling = TypeNameHandling.Auto, TypeNameAssemblyFormatHandling = TypeNameAssemblyFormatHandling.Simple, Formatting = Formatting.Indented, ContractResolver = ContractResolver.Instance, SerializationBinder = KnownTypesBinder.Instance, Context = new System.Runtime.Serialization.StreamingContext(System.Runtime.Serialization.StreamingContextStates.Other, Context) }; }
public DefConverter(LoadedDefsHolder loadedResources) { this.loadedResources = loadedResources; }