BsGameObject.cpp 942 B

1234567891011121314151617181920212223242526272829303132
  1. //__________________________ Banshee Project - A modern game development toolkit _________________________________//
  2. //_____________________________________ www.banshee-project.com __________________________________________________//
  3. //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
  4. #include "BsGameObject.h"
  5. #include "BsGameObjectRTTI.h"
  6. #include "BsGameObjectManager.h"
  7. namespace BansheeEngine
  8. {
  9. GameObject::GameObject()
  10. { }
  11. GameObject::~GameObject()
  12. { }
  13. void GameObject::initialize(const std::shared_ptr<GameObject>& object, UINT64 instanceId)
  14. {
  15. mInstanceData = bs_shared_ptr<GameObjectInstanceData>();
  16. mInstanceData->object = object;
  17. mInstanceData->mInstanceId = instanceId;
  18. }
  19. RTTITypeBase* GameObject::getRTTIStatic()
  20. {
  21. return GameObjectRTTI::instance();
  22. }
  23. RTTITypeBase* GameObject::getRTTI() const
  24. {
  25. return GameObject::getRTTIStatic();
  26. }
  27. }