| 123456789101112131415161718192021 |
- #include "CmComponent.h"
- namespace CamelotEngine
- {
- Component::Component(GameObjectPtr parent)
- :mParent(parent), mIsDestroyed(false)
- {
- }
- Component::~Component()
- {
- if(!mIsDestroyed)
- destroy();
- }
- void Component::destroy()
- {
- mIsDestroyed = true;
- }
- }
|