Exemplo n.º 1
0
        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)
            };
        }
Exemplo n.º 2
0
 public DefConverter(LoadedDefsHolder loadedResources)
 {
     this.loadedResources = loadedResources;
 }