AtomSampleComponent.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. namespace AtomSampleViewer
  11. {
  12. class AtomSampleComponent
  13. : public AZ::Component
  14. {
  15. public:
  16. AZ_RTTI(AtomSampleComponent, "{2318DFD6-BC6B-4335-9F25-8E270A10CA81}", AZ::Component);
  17. AtomSampleComponent() = default;
  18. ~AtomSampleComponent() override = default;
  19. // Redefine this string in the sample component subclass to provide a sample-specific warning message.
  20. // Any non-empty string will automatically cause a warning message to be displayed before opening the sample.
  21. static constexpr const char* ContentWarning = "";
  22. // If the above ContentWarning is overridden with a non-empty value, this string will be used as the message box's title.
  23. // Redefine this string in the sample component subclass to provide a custom title.
  24. static constexpr const char* ContentWarningTitle = "Content Warning";
  25. // This is a common photosensitive/seizure warning that could be used for the above ContentWarning in specific samples as needed.
  26. static constexpr const char CommonPhotosensitiveWarning[] = "This sample includes flashing images that could cause seizures or other adverse effects in photosensitive individuals.";
  27. static constexpr const char CommonPhotosensitiveWarningTitle[] = "Photosensitive Seizure Warning";
  28. };
  29. } // namespace AtomSampleViewer