Merge pull request #6106 from aws-lumberyard-dev/Atom/guthadam/fix_warnings_from_unreflected_system_components

Fixing warnings caused by system components not added to serialize context
This commit is contained in:
Guthrie Adams
2021-12-02 16:06:25 -06:00
committed by GitHub
2 changed files with 12 additions and 0 deletions
@@ -60,6 +60,12 @@ namespace Multiplayer
void PythonEditorFuncs::Reflect(AZ::ReflectContext* context)
{
if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
{
serialize->Class<PythonEditorFuncs, AZ::Component>()
->Version(0);
}
if (AZ::BehaviorContext* behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context))
{
// This will create static python methods in the 'azlmbr.multiplayer' module
@@ -17,6 +17,12 @@ namespace Multiplayer
void MultiplayerToolsSystemComponent::Reflect(AZ::ReflectContext* context)
{
if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
{
serialize->Class<MultiplayerToolsSystemComponent, AZ::Component>()
->Version(0);
}
NetworkPrefabProcessor::Reflect(context);
}