예제 #1
0
 public ConfigService(IConfigFileStorage fileStorage, ITrwFactory trwFactory, ISerializationNecessities serializationNecessities)
 {
     this.fileStorage = fileStorage;
     this.serializationNecessities = serializationNecessities;
     this.trwFactory = trwFactory;
     configs         = new ConcurrentDictionary <Type, IConfig>();
 }
예제 #2
0
 public ZipSaveLoadFormat(ITrwFactory trwFactory, ISaveLoadFactory saveLoadFactory, ISaveLoadConverterContainer converterContainer,
                          IResourceSavingService resourceSavingService, IResourceLoadingService resourceLoadingService)
 {
     this.converterContainer     = converterContainer;
     this.resourceSavingService  = resourceSavingService;
     this.resourceLoadingService = resourceLoadingService;
     this.trwFactory             = trwFactory;
     this.saveLoadFactory        = saveLoadFactory;
 }
예제 #3
0
 public SkyboxLoader(IImageLoader imageLoader, ITrwFactory trwFactory)
 {
     this.imageLoader = imageLoader;
     this.trwFactory  = trwFactory;
 }
예제 #4
0
 public static ITrwWriter JsonWriter(this ITrwFactory factory, Stream stream) =>
 factory.Writer(stream, "json");
예제 #5
0
 public static ITrwReader JsonReader(this ITrwFactory factory, Stream stream) =>
 factory.Reader(stream, "json");
예제 #6
0
 public static ITrwWriter MemWriter(this ITrwFactory factory, Stream stream) =>
 factory.Writer(stream, "mem");
예제 #7
0
 public static ITrwReader MemReader(this ITrwFactory factory, Stream stream) =>
 factory.Reader(stream, "mem");
예제 #8
0
 public static ITrwWriter XmlWriter(this ITrwFactory factory, Stream stream) =>
 factory.Writer(stream, "xml");
예제 #9
0
 public static ITrwReader XmlReader(this ITrwFactory factory, Stream stream) =>
 factory.Reader(stream, "xml");