CmGameObjectHandle.cpp 363 B

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