SIG/Network - Minor corrections in code gen for usability of jinja network codegen templates

Minor corrections in Multiplayer Gem code generator
monroegm-disable-blank-issue-2
Olex Lozitskiy 5 years ago committed by GitHub
commit fc2053fad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -323,10 +323,12 @@ namespace {{ Component.attrib['Namespace'] }}
/// Place in your .cpp
#include <{{ Component.attrib['OverrideInclude'] }}>
#include <AzCore/Serialization/SerializeContext.h>
namespace {{ Component.attrib['Namespace'] }}
{
{% if ComponentDerived %}
void {{ ComponentName }}::{{ ComponentName }}::Reflect(AZ::ReflectContext* context)
void {{ ComponentName }}::Reflect(AZ::ReflectContext* context)
{
AZ::SerializeContext* serializeContext = azrtti_cast<AZ::SerializeContext*>(context);
if (serializeContext)

Loading…
Cancel
Save