ScriptCanvasMultiplayerSystemComponent.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 <AzCore/Serialization/SerializeContext.h>
  9. #include <AzCore/Serialization/EditContext.h>
  10. #include <AzCore/RTTI/BehaviorContext.h>
  11. #include "ScriptCanvasMultiplayerSystemComponent.h"
  12. namespace ScriptCanvasMultiplayer
  13. {
  14. void ScriptCanvasMultiplayerSystemComponent::Reflect(AZ::ReflectContext* context)
  15. {
  16. if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
  17. {
  18. serialize->Class<ScriptCanvasMultiplayerSystemComponent, AZ::Component>()
  19. ->Version(0);
  20. if (AZ::EditContext* ec = serialize->GetEditContext())
  21. {
  22. ec->Class<ScriptCanvasMultiplayerSystemComponent>("ScriptCanvasMultiplayer", "Provides various Script Canvas nodes for multiplayer.")
  23. ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
  24. ->Attribute(AZ::Script::Attributes::Category, "Multiplayer")
  25. ->Attribute(AZ::Edit::Attributes::AutoExpand, true)
  26. ->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
  27. ;
  28. }
  29. }
  30. }
  31. void ScriptCanvasMultiplayerSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  32. {
  33. provided.push_back(AZ_CRC_CE("ScriptCanvasMultiplayerService"));
  34. }
  35. void ScriptCanvasMultiplayerSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  36. {
  37. incompatible.push_back(AZ_CRC_CE("ScriptCanvasMultiplayerService"));
  38. }
  39. void ScriptCanvasMultiplayerSystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
  40. {
  41. required.push_back(AZ_CRC_CE("LmbrCentralService"));
  42. }
  43. void ScriptCanvasMultiplayerSystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
  44. {
  45. (void)dependent;
  46. }
  47. void ScriptCanvasMultiplayerSystemComponent::Init()
  48. {
  49. }
  50. void ScriptCanvasMultiplayerSystemComponent::Activate()
  51. {
  52. }
  53. void ScriptCanvasMultiplayerSystemComponent::Deactivate()
  54. {
  55. }
  56. }