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