Attachment: expose more function from AttachmentComponentRequestBus to behavior context (#6456)

Signed-off-by: rhhong <rhhong@amazon.com>
This commit is contained in:
Roman
2021-12-20 22:00:47 -08:00
committed by GitHub
parent a4df91b718
commit 366a7118ab
@@ -58,13 +58,17 @@ namespace AZ
behaviorContext->EBus<LmbrCentral::AttachmentComponentRequestBus>("AttachmentComponentRequestBus")
->Event("Attach", &LmbrCentral::AttachmentComponentRequestBus::Events::Attach)
->Event("Detach", &LmbrCentral::AttachmentComponentRequestBus::Events::Detach)
->Event("SetAttachmentOffset", &LmbrCentral::AttachmentComponentRequestBus::Events::SetAttachmentOffset);
->Event("SetAttachmentOffset", &LmbrCentral::AttachmentComponentRequestBus::Events::SetAttachmentOffset)
->Event("GetJointName", &LmbrCentral::AttachmentComponentRequestBus::Events::GetJointName)
->Event("GetTargetEntityId", &LmbrCentral::AttachmentComponentRequestBus::Events::GetTargetEntityId)
->Event("GetOffset", &LmbrCentral::AttachmentComponentRequestBus::Events::GetOffset);
behaviorContext->EBus<LmbrCentral::AttachmentComponentNotificationBus>("AttachmentComponentNotificationBus")
->Handler<BehaviorAttachmentComponentNotificationBusHandler>();
}
}
void AttachmentComponent::Reflect(AZ::ReflectContext* context)
{
AttachmentConfiguration::Reflect(context);