| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsRTTIType.h"
- #include "BsCSliderJoint.h"
- #include "BsGameObjectRTTI.h"
- namespace BansheeEngine
- {
- /** @cond RTTI */
- /** @addtogroup RTTI-Impl-Core
- * @{
- */
- class BS_CORE_EXPORT CSliderJointRTTI : public RTTIType<CSliderJoint, CJoint, CSliderJointRTTI>
- {
- BS_PLAIN_MEMBER_NAMED(mFlag, mDesc.flag)
- BS_PLAIN_MEMBER_NAMED(mLimitLower, mDesc.limit.lower)
- BS_PLAIN_MEMBER_NAMED(mLimitUpper, mDesc.limit.upper)
- BS_PLAIN_MEMBER_NAMED(mLimitContactDist, mDesc.limit.contactDist)
- BS_PLAIN_MEMBER_NAMED(mLimitRestitution, mDesc.limit.restitution)
- BS_PLAIN_MEMBER_NAMED(mSpringDamping, mDesc.limit.spring.damping)
- BS_PLAIN_MEMBER_NAMED(mSpringStiffness, mDesc.limit.spring.stiffness)
- public:
- CSliderJointRTTI()
- {
- BS_ADD_PLAIN_FIELD(mFlag, 0);
- BS_ADD_PLAIN_FIELD(mLimitLower, 1);
- BS_ADD_PLAIN_FIELD(mLimitUpper, 2);
- BS_ADD_PLAIN_FIELD(mLimitContactDist, 3);
- BS_ADD_PLAIN_FIELD(mLimitRestitution, 4);
- BS_ADD_PLAIN_FIELD(mSpringDamping, 5);
- BS_ADD_PLAIN_FIELD(mSpringStiffness, 6);
- }
- const String& getRTTIName() override
- {
- static String name = "CSliderJoint";
- return name;
- }
- UINT32 getRTTIId() override
- {
- return TID_CSliderJoint;
- }
- SPtr<IReflectable> newRTTIObject() override
- {
- return GameObjectRTTI::createGameObject<CSliderJoint>();
- }
- };
- /** @} */
- /** @endcond */
- }
|