public DefaultFileLoadInfo(string filePath, IAssetService assetService, IWorldTreeService worldTreeService, LoadWorldPreference worldPreference)
 {
     FileSystem            = new ActualFileSystem();
     FilePath              = filePath;
     this.assetService     = assetService;
     this.worldTreeService = worldTreeService;
     this.worldPreference  = worldPreference;
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 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));
 }