| 1234567891011121314151617181920212223242526272829303132 |
- #include "CmComponent.h"
- #include "CmSceneObject.h"
- #include "CmComponentRTTI.h"
- namespace CamelotFramework
- {
- Component::Component(const HSceneObject& parent)
- :mParent(parent)
- {
- }
- Component::~Component()
- {
- }
- void Component::destroy()
- {
- SO()->destroyComponent(this);
- }
- RTTITypeBase* Component::getRTTIStatic()
- {
- return ComponentRTTI::instance();
- }
- RTTITypeBase* Component::getRTTI() const
- {
- return Component::getRTTIStatic();
- }
- }
|