BsEditorTestSuite.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsTestSuite.h"
  4. #include "BsComponent.h"
  5. namespace BansheeEngine
  6. {
  7. class TestComponentA : public Component
  8. {
  9. public:
  10. HSceneObject ref1;
  11. HComponent ref2;
  12. /************************************************************************/
  13. /* COMPONENT OVERRIDES */
  14. /************************************************************************/
  15. protected:
  16. friend class SceneObject;
  17. TestComponentA(const HSceneObject& parent);
  18. /************************************************************************/
  19. /* RTTI */
  20. /************************************************************************/
  21. public:
  22. friend class TestComponentARTTI;
  23. static RTTITypeBase* getRTTIStatic();
  24. virtual RTTITypeBase* getRTTI() const;
  25. protected:
  26. TestComponentA() {} // Serialization only
  27. };
  28. class TestComponentB : public Component
  29. {
  30. public:
  31. HSceneObject ref1;
  32. String val1;
  33. /************************************************************************/
  34. /* COMPONENT OVERRIDES */
  35. /************************************************************************/
  36. protected:
  37. friend class SceneObject;
  38. TestComponentB(const HSceneObject& parent);
  39. /************************************************************************/
  40. /* RTTI */
  41. /************************************************************************/
  42. public:
  43. friend class TestComponentBRTTI;
  44. static RTTITypeBase* getRTTIStatic();
  45. virtual RTTITypeBase* getRTTI() const;
  46. protected:
  47. TestComponentB() {} // Serialization only
  48. };
  49. class EditorTestSuite : public TestSuite
  50. {
  51. public:
  52. EditorTestSuite();
  53. private:
  54. void SceneObjectRecord_UndoRedo();
  55. };
  56. }