Update behavior reflection of EMotionFX's MotionEvent to use nullptr instead of empty lambdas. (#6617)

Signed-off-by: Andre Mitchell <andre.mitchell@bytesofpi.com>
This commit is contained in:
Andre Mitchell
2022-01-13 03:36:19 -05:00
committed by GitHub
parent e224fc2ee5
commit ff0df4b8b6
@@ -400,17 +400,16 @@ namespace EMotionFX
behaviorContext->EBus<SystemNotificationBus>("SystemNotificationBus")
;
// In order for a property to be displayed in ScriptCanvas. Both a setter and a getter are necessary(both must be non-null).
// This is being worked on in dragon branch, once this is complete the dummy lambda functions can be removed.
// In order for a property to be displayed in ScriptCanvas.
behaviorContext->Class<MotionEvent>("MotionEvent")
->Property("entityId", BehaviorValueGetter(&MotionEvent::m_entityId), [](MotionEvent*, const AZ::EntityId&) {})
->Property("parameter", BehaviorValueGetter(&MotionEvent::m_parameter), [](MotionEvent*, const char*) {})
->Property("eventType", BehaviorValueGetter(&MotionEvent::m_eventType), [](MotionEvent*, const AZ::u32&) {})
->Property("eventTypeName", BehaviorValueGetter(&MotionEvent::m_eventTypeName), [](MotionEvent*, const char*) {})
->Property("time", BehaviorValueGetter(&MotionEvent::m_time), [](MotionEvent*, const float&) {})
->Property("globalWeight", BehaviorValueGetter(&MotionEvent::m_globalWeight), [](MotionEvent*, const float&) {})
->Property("localWeight", BehaviorValueGetter(&MotionEvent::m_localWeight), [](MotionEvent*, const float&) {})
->Property("isEventStart", BehaviorValueGetter(&MotionEvent::m_isEventStart), [](MotionEvent*, const bool&) {})
->Property("entityId", BehaviorValueGetter(&MotionEvent::m_entityId), nullptr)
->Property("parameter", BehaviorValueGetter(&MotionEvent::m_parameter), nullptr)
->Property("eventType", BehaviorValueGetter(&MotionEvent::m_eventType), nullptr)
->Property("eventTypeName", BehaviorValueGetter(&MotionEvent::m_eventTypeName), nullptr)
->Property("time", BehaviorValueGetter(&MotionEvent::m_time), nullptr)
->Property("globalWeight", BehaviorValueGetter(&MotionEvent::m_globalWeight), nullptr)
->Property("localWeight", BehaviorValueGetter(&MotionEvent::m_localWeight), nullptr)
->Property("isEventStart", BehaviorValueGetter(&MotionEvent::m_isEventStart), nullptr)
;
behaviorContext->EBus<ActorNotificationBus>("ActorNotificationBus")