c778606c89
* Templates/Restricted upgrade/fixes: Fixed template storage format: templates now only store true relative paths and no longer save "origin" paths and "optional" has been removed, it was never used. Upgraded all templates to new standard Template system now correctly handles child objects: Child objects no longer have to specify restricted they inherit from parent Restricted now operates at the object level and makes no assumptions about parent Restricted templates can now be combined and seperated on creation ly_get_list_relative_filename has been deprecated for o3de_pal_dir All Gems/Projects/Templates updated to use new code Signed-off-by: byrcolin <byrcolin@amazon.com>
50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
// {BEGIN_LICENSE}
|
|
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
// {END_LICENSE}
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/Component/Component.h>
|
|
|
|
#include <${Name}/${Name}Bus.h>
|
|
|
|
namespace ${SanitizedCppName}
|
|
{
|
|
class ${SanitizedCppName}SystemComponent
|
|
: public AZ::Component
|
|
, protected ${SanitizedCppName}RequestBus::Handler
|
|
{
|
|
public:
|
|
AZ_COMPONENT(${SanitizedCppName}SystemComponent, "${SysCompClassId}");
|
|
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
|
|
static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
|
|
static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
|
|
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
|
|
static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
|
|
|
|
${SanitizedCppName}SystemComponent();
|
|
~${SanitizedCppName}SystemComponent();
|
|
|
|
protected:
|
|
////////////////////////////////////////////////////////////////////////
|
|
// ${SanitizedCppName}RequestBus interface implementation
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
// AZ::Component interface implementation
|
|
void Init() override;
|
|
void Activate() override;
|
|
void Deactivate() override;
|
|
////////////////////////////////////////////////////////////////////////
|
|
};
|
|
}
|