| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsTestSuite.h"
- #include "BsComponent.h"
- namespace BansheeEngine
- {
- class TestComponentA : public Component
- {
- public:
- HSceneObject ref1;
- HComponent ref2;
- /************************************************************************/
- /* COMPONENT OVERRIDES */
- /************************************************************************/
- protected:
- friend class SceneObject;
- TestComponentA(const HSceneObject& parent);
- /************************************************************************/
- /* RTTI */
- /************************************************************************/
- public:
- friend class TestComponentARTTI;
- static RTTITypeBase* getRTTIStatic();
- virtual RTTITypeBase* getRTTI() const;
- protected:
- TestComponentA() {} // Serialization only
- };
- class TestComponentB : public Component
- {
- public:
- HSceneObject ref1;
- String val1;
- /************************************************************************/
- /* COMPONENT OVERRIDES */
- /************************************************************************/
- protected:
- friend class SceneObject;
- TestComponentB(const HSceneObject& parent);
- /************************************************************************/
- /* RTTI */
- /************************************************************************/
- public:
- friend class TestComponentBRTTI;
- static RTTITypeBase* getRTTIStatic();
- virtual RTTITypeBase* getRTTI() const;
- protected:
- TestComponentB() {} // Serialization only
- };
- class EditorTestSuite : public TestSuite
- {
- public:
- EditorTestSuite();
- private:
- void SceneObjectRecord_UndoRedo();
- };
- }
|