Merge pull request #4293 from aws-lumberyard-dev/mp_rpcparam_codegen

Fix AutoGen of RPCs with no params
monroegm-disable-blank-issue-2
puvvadar 4 years ago committed by GitHub
commit 967d535464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,12 +170,20 @@ AZ::Event<{{ Property.attrib['Type'] }}>
{% set PropertyName = UpperFirst(Property.attrib['Name']) %} {% set PropertyName = UpperFirst(Property.attrib['Name']) %}
{{ ParseRpcParams(Property, paramNames, paramTypes, paramDefines) }} {{ ParseRpcParams(Property, paramNames, paramTypes, paramDefines) }}
{% if IsOverride %} {% if IsOverride %}
{% if paramDefines|count > 0 %}
void Handle{{ PropertyName }}(AzNetworking::IConnection* invokingConnection, {{ ', '.join(paramDefines) }}) override {} void Handle{{ PropertyName }}(AzNetworking::IConnection* invokingConnection, {{ ', '.join(paramDefines) }}) override {}
{% else %}
void Handle{{ PropertyName }}(AzNetworking::IConnection* invokingConnection) override {}
{% endif %}
{% else %} {% else %}
//! {{ PropertyName }} Handler //! {{ PropertyName }} Handler
//! {{ Property.attrib['Description'] }} //! {{ Property.attrib['Description'] }}
//! HandleOn {{ HandleOn }} //! HandleOn {{ HandleOn }}
{% if paramDefines|count > 0 %}
virtual void Handle{{ PropertyName }}([[maybe_unused]] AzNetworking::IConnection* invokingConnection, [[maybe_unused]] {{ ', [[maybe_unused]] '.join(paramDefines) }}) {} virtual void Handle{{ PropertyName }}([[maybe_unused]] AzNetworking::IConnection* invokingConnection, [[maybe_unused]] {{ ', [[maybe_unused]] '.join(paramDefines) }}) {}
{% else %}
virtual void Handle{{ PropertyName }}([[maybe_unused]] AzNetworking::IConnection* invokingConnection) {}
{% endif %}
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{# {#

Loading…
Cancel
Save