LUABreakpointTrackerMessages.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 "LUABreakpointTrackerMessages.h"
  10. namespace LUAEditor
  11. {
  12. void Breakpoint::Reflect(AZ::ReflectContext* reflection)
  13. {
  14. // reflect data for script, serialization, editing...
  15. AZ::SerializeContext* serializeContext = azrtti_cast<AZ::SerializeContext*>(reflection);
  16. if (serializeContext)
  17. {
  18. serializeContext->Class<Breakpoint>()
  19. ->Version(3)
  20. ->Field("m_breakpointId", &Breakpoint::m_breakpointId)
  21. ->Field("m_assetId", &Breakpoint::m_assetId)
  22. ->Field("m_documentLine", &Breakpoint::m_documentLine)
  23. ->Field("m_assetName", &Breakpoint::m_assetName)
  24. ;
  25. }
  26. }
  27. void Breakpoint::RepurposeToNewOwner(const AZStd::string& newAssetName, const AZStd::string& newAssetId)
  28. {
  29. m_assetName = newAssetName;
  30. m_assetId = newAssetId;
  31. }
  32. }