3
0

AssetReference.cpp 856 B

123456789101112131415161718192021222324252627282930
  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 <AzCore/Serialization/SerializeContext.h>
  9. #include <Atom/RPI.Reflect/Asset/AssetReference.h>
  10. namespace AZ
  11. {
  12. namespace RPI
  13. {
  14. void AssetReference::Reflect(AZ::ReflectContext* context)
  15. {
  16. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  17. {
  18. serializeContext->Class<AssetReference>()
  19. ->Version(0)
  20. ->Field("FilePath", &AssetReference::m_filePath)
  21. ->Field("AssetId", &AssetReference::m_assetId)
  22. ;
  23. }
  24. }
  25. } // namespace RPI
  26. } // namespace AZ