Add missing reflection calls for various types (#5163)

Signed-off-by: hultonha <hultonha@amazon.co.uk>
monroegm-disable-blank-issue-2
hultonha 4 years ago committed by GitHub
parent 49da85ca3a
commit bf6fd2a6d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,8 +26,12 @@ namespace AzToolsFramework
AZ::Interface<ContainerEntityInterface>::Unregister(this); AZ::Interface<ContainerEntityInterface>::Unregister(this);
} }
void ContainerEntitySystemComponent::Reflect([[maybe_unused]] AZ::ReflectContext* context) void ContainerEntitySystemComponent::Reflect(AZ::ReflectContext* context)
{ {
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
{
serializeContext->Class<ContainerEntitySystemComponent, AZ::Component>()->Version(1);
}
} }
void ContainerEntitySystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided) void ContainerEntitySystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)

@ -47,8 +47,12 @@ namespace AzToolsFramework
AZ::Interface<FocusModeInterface>::Unregister(this); AZ::Interface<FocusModeInterface>::Unregister(this);
} }
void FocusModeSystemComponent::Reflect([[maybe_unused]] AZ::ReflectContext* context) void FocusModeSystemComponent::Reflect(AZ::ReflectContext* context)
{ {
if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
{
serializeContext->Class<FocusModeSystemComponent, AZ::Component>()->Version(1);
}
} }
void FocusModeSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided) void FocusModeSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)

@ -28,9 +28,12 @@ namespace UnitTest
return true; return true;
} }
void BoundsTestComponent::Reflect([[maybe_unused]] AZ::ReflectContext* context) void BoundsTestComponent::Reflect(AZ::ReflectContext* context)
{ {
// noop if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
{
serializeContext->Class<BoundsTestComponent, EditorComponentBase>()->Version(1);
}
} }
void BoundsTestComponent::Activate() void BoundsTestComponent::Activate()

@ -42,5 +42,4 @@ namespace UnitTest
AZ::Aabb GetWorldBounds() override; AZ::Aabb GetWorldBounds() override;
AZ::Aabb GetLocalBounds() override; AZ::Aabb GetLocalBounds() override;
}; };
} // namespace UnitTest } // namespace UnitTest

Loading…
Cancel
Save