AWSScriptBehaviorsComponent.cpp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 <ScriptCanvas/AWSScriptBehaviorsComponent.h>
  9. #include <ScriptCanvas/AWSScriptBehaviorDynamoDB.h>
  10. #include <ScriptCanvas/AWSScriptBehaviorLambda.h>
  11. #include <ScriptCanvas/AWSScriptBehaviorS3.h>
  12. namespace AWSCore
  13. {
  14. void AWSScriptBehaviorsComponent::Reflect(AZ::ReflectContext* context)
  15. {
  16. AWSScriptBehaviorDynamoDB::Reflect(context);
  17. AWSScriptBehaviorLambda::Reflect(context);
  18. AWSScriptBehaviorS3::Reflect(context);
  19. if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
  20. {
  21. serialize->Class<AWSScriptBehaviorsComponent, AZ::Component>()
  22. ->Version(0);
  23. if (AZ::EditContext* editContext = serialize->GetEditContext())
  24. {
  25. editContext->Class<AWSScriptBehaviorsComponent>("AWSScriptBehaviors", "Provides ScriptCanvas functions for calling AWS")
  26. ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
  27. ->Attribute(AZ::Edit::Attributes::Category, "Scripting")
  28. ->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("AWS"))
  29. ->Attribute(AZ::Edit::Attributes::AutoExpand, true)
  30. ;
  31. }
  32. }
  33. }
  34. void AWSScriptBehaviorsComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  35. {
  36. provided.push_back(AZ_CRC_CE("AWSScriptBehaviorsService"));
  37. }
  38. void AWSScriptBehaviorsComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  39. {
  40. incompatible.push_back(AZ_CRC_CE("AWSScriptBehaviorsService"));
  41. }
  42. void AWSScriptBehaviorsComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
  43. {
  44. AZ_UNUSED(required);
  45. }
  46. void AWSScriptBehaviorsComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
  47. {
  48. AZ_UNUSED(dependent);
  49. }
  50. void AWSScriptBehaviorsComponent::Activate()
  51. {
  52. }
  53. void AWSScriptBehaviorsComponent::Deactivate()
  54. {
  55. }
  56. }