| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsRTTIType.h"
- #include "BsCAudioSource.h"
- #include "BsGameObjectRTTI.h"
- namespace BansheeEngine
- {
- /** @cond RTTI */
- /** @addtogroup RTTI-Impl-Core
- * @{
- */
- class BS_CORE_EXPORT CAudioSourceRTTI : public RTTIType<CAudioSource, Component, CAudioSourceRTTI>
- {
- BS_BEGIN_RTTI_MEMBERS
- BS_RTTI_MEMBER_REFL(mAudioClip, 0)
- BS_RTTI_MEMBER_PLAIN(mVolume, 1)
- BS_RTTI_MEMBER_PLAIN(mPitch, 2)
- BS_RTTI_MEMBER_PLAIN(mLoop, 3)
- BS_RTTI_MEMBER_PLAIN(mPriority, 4)
- BS_RTTI_MEMBER_PLAIN(mMinDistance, 5)
- BS_RTTI_MEMBER_PLAIN(mAttenuation, 6)
- BS_RTTI_MEMBER_PLAIN(mPlayOnStart, 7)
- BS_END_RTTI_MEMBERS
- public:
- CAudioSourceRTTI()
- :mInitMembers(this)
- { }
- const String& getRTTIName() override
- {
- static String name = "CAudioSource";
- return name;
- }
- UINT32 getRTTIId() override
- {
- return TID_CAudioSource;
- }
- SPtr<IReflectable> newRTTIObject() override
- {
- return GameObjectRTTI::createGameObject<CAudioSource>();
- }
- };
- /** @} */
- /** @endcond */
- }
|