| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsRTTIType.h"
- #include "BsCCollider.h"
- namespace BansheeEngine
- {
- /** @cond RTTI */
- /** @addtogroup RTTI-Impl-Core
- * @{
- */
- class BS_CORE_EXPORT CColliderRTTI : public RTTIType<CCollider, Component, CColliderRTTI>
- {
- BS_BEGIN_RTTI_MEMBERS
- BS_RTTI_MEMBER_PLAIN(mLayer, 0)
- BS_RTTI_MEMBER_PLAIN(mRestOffset, 1)
- BS_RTTI_MEMBER_PLAIN(mContactOffset, 2)
- BS_RTTI_MEMBER_REFL(mMaterial, 3)
- BS_RTTI_MEMBER_PLAIN(mMass, 4)
- BS_RTTI_MEMBER_PLAIN(mIsTrigger, 5)
- BS_RTTI_MEMBER_PLAIN(mLocalPosition, 6)
- BS_RTTI_MEMBER_PLAIN(mLocalRotation, 7)
- BS_RTTI_MEMBER_PLAIN(mCollisionReportMode, 8)
- BS_END_RTTI_MEMBERS
- public:
- CColliderRTTI()
- :mInitMembers(this)
- { }
- const String& getRTTIName() override
- {
- static String name = "CCollider";
- return name;
- }
- UINT32 getRTTIId() override
- {
- return TID_CCollider;
- }
- SPtr<IReflectable> newRTTIObject() override
- {
- BS_EXCEPT(InternalErrorException, "Cannot instantiate an abstract class.");
- return nullptr;
- }
- };
- /** @} */
- /** @endcond */
- }
|