| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsRTTIType.h"
- #include "BsPhysicsMesh.h"
- namespace BansheeEngine
- {
- /** @cond RTTI */
- /** @addtogroup RTTI-Impl-Core
- * @{
- */
- class BS_CORE_EXPORT PhysicsMeshRTTI : public RTTIType<PhysicsMesh, Resource, PhysicsMeshRTTI>
- {
- private:
- BS_PLAIN_MEMBER(mType)
- public:
- PhysicsMeshRTTI()
- {
- BS_ADD_PLAIN_FIELD(mType, 0)
- }
- const String& getRTTIName() override
- {
- static String name = "PhysicsMesh";
- return name;
- }
- UINT32 getRTTIId() override
- {
- return TID_PhysicsMesh;
- }
- std::shared_ptr<IReflectable> newRTTIObject() override
- {
- BS_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
- }
- };
- /** @} */
- /** @endcond */
- }
|