ValuePointerReferenceExample.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 <ScriptCanvas/Core/Nodeable.h>
  10. #include <ScriptCanvas/Core/NodeableNode.h>
  11. #include <ScriptCanvas/CodeGen/NodeableCodegen.h>
  12. #include <AzCore/std/containers/vector.h>
  13. #include <Source/Nodes/Nodeables/ValuePointerReferenceExample.generated.h>
  14. namespace ScriptCanvasTesting
  15. {
  16. namespace Nodeables
  17. {
  18. class ReturnTypeExample
  19. : public ScriptCanvas::Nodeable
  20. {
  21. SCRIPTCANVAS_NODE(ReturnTypeExample);
  22. public:
  23. AZ_CLASS_ALLOCATOR(ReturnTypeExample, AZ::SystemAllocator)
  24. private:
  25. AZStd::vector<ScriptCanvas::Data::NumberType> m_internalVector{ 1.0, 2.0, 3.0 };
  26. };
  27. class BranchInputTypeExample
  28. : public ScriptCanvas::Nodeable
  29. {
  30. SCRIPTCANVAS_NODE(BranchInputTypeExample);
  31. public:
  32. AZ_CLASS_ALLOCATOR(BranchInputTypeExample, AZ::SystemAllocator)
  33. private:
  34. AZStd::vector<ScriptCanvas::Data::NumberType> m_internalVector{ 1.0, 2.0, 3.0 };
  35. };
  36. class InputTypeExample
  37. : public ScriptCanvas::Nodeable
  38. {
  39. SCRIPTCANVAS_NODE(InputTypeExample);
  40. };
  41. }
  42. }