GridComponentConfig.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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 <AtomLyIntegration/CommonFeatures/Grid/GridComponentConfig.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. namespace AZ
  11. {
  12. namespace Render
  13. {
  14. void GridComponentConfig::Reflect(ReflectContext* context)
  15. {
  16. if (AZ::SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context))
  17. {
  18. serializeContext->Class<GridComponentConfig, ComponentConfig>()
  19. ->Version(0)
  20. ->Field("gridSize", &GridComponentConfig::m_gridSize)
  21. ->Field("axisColor", &GridComponentConfig::m_axisColor)
  22. ->Field("primarySpacing", &GridComponentConfig::m_primarySpacing)
  23. ->Field("primaryColor", &GridComponentConfig::m_primaryColor)
  24. ->Field("secondarySpacing", &GridComponentConfig::m_secondarySpacing)
  25. ->Field("secondaryColor", &GridComponentConfig::m_secondaryColor)
  26. ;
  27. }
  28. }
  29. } // namespace Render
  30. } // namespace AZ