ProjectLibrary.txt 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. ProjectLibrary
  2. - Save/Load - saves/loads the hierarchy of ResourceEntries
  3. --------------------
  4. Imported resources should get queued. Since I want to display a progress bar with % of resources imported.
  5. - Plus importers should work on separate threads (Will likely make Resources worker threads global and re-use them for importer)
  6. -------------------
  7. TOMORROW:
  8. mIsVisible seems to get set in updateTreeElement? Which means expanding/closing wont work without it
  9. - I should probably move those so they are changed whenever mIsExpanded is toggled
  10. - I might want to move stuff from TreeView::update in general to an event-based system. Only in case of Scene those events would be generated internally.
  11. Later: Projectlibrary add (tracking drag and drop using Win32DragAndDropManager)
  12. -------------------
  13. LOW PRIORITY
  14. ResourceManifest contains absolute file locations. What happens when the project moves?
  15. - When saving ResourceManifest make sure to process all paths and make them relative.
  16. - Then reverse that process on load
  17. What happens when importer fails importing a file?
  18. - This can be one of the lasts steps, but I will likely need to go through all importers manually and set them up so they return proper error codes
  19. and clean up properly on error.
  20. - In fact they should use exceptions but those should be translated to error codes when returned to Importer
  21. - OR just write directly to debug log?
  22. - Probably log and error code, since I will need to inform the outside world that import failed somehow