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