| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsRTTIType.h"
- #include "BsCDistanceJoint.h"
- #include "BsGameObjectRTTI.h"
- namespace BansheeEngine
- {
- /** @cond RTTI */
- /** @addtogroup RTTI-Impl-Core
- * @{
- */
- class BS_CORE_EXPORT CDistanceJointRTTI : public RTTIType<CDistanceJoint, CJoint, CDistanceJointRTTI>
- {
- BS_PLAIN_MEMBER(mFlag)
- BS_PLAIN_MEMBER(mMinDistance)
- BS_PLAIN_MEMBER(mMaxDistance)
- BS_PLAIN_MEMBER(mTolerance)
- BS_PLAIN_MEMBER_NAMED(mSpringDamping, mSpring.damping)
- BS_PLAIN_MEMBER_NAMED(mSpringStiffness, mSpring.stiffness)
- public:
- CDistanceJointRTTI()
- {
- BS_ADD_PLAIN_FIELD(mFlag, 0);
- BS_ADD_PLAIN_FIELD(mMinDistance, 1);
- BS_ADD_PLAIN_FIELD(mMaxDistance, 2);
- BS_ADD_PLAIN_FIELD(mTolerance, 3);
- BS_ADD_PLAIN_FIELD(mSpringDamping, 4);
- BS_ADD_PLAIN_FIELD(mSpringStiffness, 5);
- }
- const String& getRTTIName() override
- {
- static String name = "CDistanceJoint";
- return name;
- }
- UINT32 getRTTIId() override
- {
- return TID_CDistanceJoint;
- }
- SPtr<IReflectable> newRTTIObject() override
- {
- return GameObjectRTTI::createGameObject<CDistanceJoint>();
- }
- };
- /** @} */
- /** @endcond */
- }
|