3
0

BehaviorContextObjectTestNode.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/Attributes.h>
  10. namespace AZ
  11. {
  12. class ReflectContext;
  13. }
  14. namespace ScriptCanvasTestingNodes
  15. {
  16. //! This object is used to test the use of BehaviorContext classes
  17. class BehaviorContextObjectTest
  18. {
  19. public:
  20. AZ_RTTI(BehaviorContextObjectTest, "{FF687BD7-42AA-44C4-B3AB-79353E8C6CCF}");
  21. AZ_CLASS_ALLOCATOR(BehaviorContextObjectTest, AZ::SystemAllocator);
  22. static void Reflect(AZ::ReflectContext* context);
  23. BehaviorContextObjectTest()
  24. {
  25. }
  26. virtual ~BehaviorContextObjectTest() {}
  27. void SetString(AZStd::string string)
  28. {
  29. m_string = string;
  30. }
  31. AZStd::string GetString() const
  32. {
  33. return m_string;
  34. }
  35. private:
  36. AZStd::string m_name;
  37. AZStd::string m_string;
  38. };
  39. }