assetScanFolderInfo.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <native/AssetManager/assetScanFolderInfo.h>
  9. #include <native/utilities/assetUtils.h>
  10. namespace AssetProcessor
  11. {
  12. ScanFolderInfo::ScanFolderInfo(
  13. QString path,
  14. QString displayName,
  15. QString portableKey,
  16. bool isRoot,
  17. bool recurseSubFolders,
  18. AZStd::vector<AssetBuilderSDK::PlatformInfo> platforms,
  19. int order,
  20. AZ::s64 scanFolderID,
  21. bool canSaveNewAssets)
  22. : m_scanPath(path)
  23. , m_displayName(displayName)
  24. , m_portableKey (portableKey)
  25. , m_isRoot(isRoot)
  26. , m_recurseSubFolders(recurseSubFolders)
  27. , m_order(order)
  28. , m_scanFolderID(scanFolderID)
  29. , m_platforms(platforms)
  30. , m_canSaveNewAssets(canSaveNewAssets)
  31. {
  32. m_scanPath = AssetUtilities::NormalizeFilePath(m_scanPath);
  33. // note that m_scanFolderID is 0 unless its filled in from the DB.
  34. }
  35. } // end namespace AssetProcessor