public DefaultFileLoadInfo(string filePath, IAssetService assetService, IWorldTreeService worldTreeService, LoadWorldPreference worldPreference) { FileSystem = new ActualFileSystem(); FilePath = filePath; this.assetService = assetService; this.worldTreeService = worldTreeService; this.worldPreference = worldPreference; }
public void Import(IPresentationImporter importer, string filePath, LoadWorldPreference preference) { assetService.DeleteAll(); importer.Load(new DefaultFileLoadInfo(filePath, assetService, worldTreeService, preference)); eventRoutingService.FireEvent <ISaveLoadEvent>(new SaveLoadEvent(SaveLoadEventType.Load, worldTreeService.World, assetService.Assets)); }
public void Load(LoadWorldPreference worldPreference) { assetService.DeleteAll(); Format.Load(new DefaultFileLoadInfo(FileName, assetService, worldTreeService, worldPreference)); eventRoutingService.FireEvent <ISaveLoadEvent>(new SaveLoadEvent(SaveLoadEventType.Load, worldTreeService.World, assetService.Assets)); }