ProjectExporterModel.cs 667 B

1234567891011121314151617181920212223
  1. using System.Collections.Generic;
  2. namespace AssetBank.DockableWindow
  3. {
  4. // Represents a single asset (file or folder) that can be exported.
  5. public class AssetModel
  6. {
  7. public string Path { get; }
  8. public string Name { get; }
  9. public string Category { get; }
  10. public bool IsSelected { get; set; }
  11. public List<AssetModel> Children { get; }
  12. public AssetModel(string path, string name, string category)
  13. {
  14. Path = path;
  15. Name = name;
  16. Category = category;
  17. IsSelected = true; // Default to selected
  18. Children = new List<AssetModel>();
  19. }
  20. }
  21. }