Esempio n. 1
0
 public ConfigService(IConfigFileStorage fileStorage, ITrwFactory trwFactory, ISerializationNecessities serializationNecessities)
 {
     this.fileStorage = fileStorage;
     this.serializationNecessities = serializationNecessities;
     this.trwFactory = trwFactory;
     configs         = new ConcurrentDictionary <Type, IConfig>();
 }
Esempio n. 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;
 }
Esempio n. 3
0
 public SkyboxLoader(IImageLoader imageLoader, ITrwFactory trwFactory)
 {
     this.imageLoader = imageLoader;
     this.trwFactory  = trwFactory;
 }
Esempio n. 4
0
 public static ITrwWriter JsonWriter(this ITrwFactory factory, Stream stream) =>
 factory.Writer(stream, "json");
Esempio n. 5
0
 public static ITrwReader JsonReader(this ITrwFactory factory, Stream stream) =>
 factory.Reader(stream, "json");
Esempio n. 6
0
 public static ITrwWriter MemWriter(this ITrwFactory factory, Stream stream) =>
 factory.Writer(stream, "mem");
Esempio n. 7
0
 public static ITrwReader MemReader(this ITrwFactory factory, Stream stream) =>
 factory.Reader(stream, "mem");
Esempio n. 8
0
 public static ITrwWriter XmlWriter(this ITrwFactory factory, Stream stream) =>
 factory.Writer(stream, "xml");
Esempio n. 9
0
 public static ITrwReader XmlReader(this ITrwFactory factory, Stream stream) =>
 factory.Reader(stream, "xml");