| 1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include "CmPrerequisites.h"
- #include "CmRTTIType.h"
- #include "CmComponent.h"
- namespace CamelotFramework
- {
- class CM_EXPORT ComponentRTTI : public RTTIType<Component, GameObject, ComponentRTTI>
- {
- private:
- public:
- ComponentRTTI()
- {
- }
- virtual const String& getRTTIName()
- {
- static String name = "Component";
- return name;
- }
- virtual UINT32 getRTTIId()
- {
- return TID_Component;
- }
- virtual std::shared_ptr<IReflectable> newRTTIObject()
- {
- CM_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
- }
- };
- }
|