1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#pragma once
4
5#include "BsCorePrerequisites.h"
6#include "Reflection/BsRTTIType.h"
7#include "Components/BsCPlaneCollider.h"
8#include "Private/RTTI/BsGameObjectRTTI.h"
9
10namespace bs
11{
12 /** @cond RTTI */
13 /** @addtogroup RTTI-Impl-Core
14 * @{
15 */
16
17 class BS_CORE_EXPORT CPlaneColliderRTTI : public RTTIType<CPlaneCollider, CCollider, CPlaneColliderRTTI>
18 {
19 private:
20 BS_BEGIN_RTTI_MEMBERS
21 BS_RTTI_MEMBER_PLAIN(mNormal, 0)
22 BS_RTTI_MEMBER_PLAIN(mDistance, 1)
23 BS_END_RTTI_MEMBERS
24 public:
25 const String& getRTTIName() override
26 {
27 static String name = "CPlaneCollider";
28 return name;
29 }
30
31 UINT32 getRTTIId() override
32 {
33 return TID_CPlaneCollider;
34 }
35
36 SPtr<IReflectable> newRTTIObject() override
37 {
38 return SceneObject::createEmptyComponent<CPlaneCollider>();
39 }
40 };
41
42 /** @} */
43 /** @endcond */
44}
45