CmGameObjectHandle.cpp 393 B

123456789101112131415161718
  1. #include "CmPrerequisites.h"
  2. #include "CmGameObject.h"
  3. #include "CmGameObjectHandle.h"
  4. #include "CmException.h"
  5. namespace CamelotFramework
  6. {
  7. GameObjectHandleBase::GameObjectHandleBase()
  8. { }
  9. void GameObjectHandleBase::throwIfDestroyed() const
  10. {
  11. if(isDestroyed())
  12. {
  13. CM_EXCEPT(InternalErrorException, "Trying to access an object that has been destroyed.");
  14. }
  15. }
  16. }