Files
o3de/Gems/CameraFramework/Code/Include/CameraFramework/ICameraSubComponent.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

30 lines
1.0 KiB
C++

/*
* 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
*
*/
#pragma once
#include <AzCore/RTTI/RTTI.h>
#include <AzCore/Component/EntityId.h>
namespace Camera
{
//////////////////////////////////////////////////////////////////////////
/// Classes that inherit from this one will share the life-cycle API's
/// with components. Components that contain the subclasses are expected
/// to call these methods in their Init/Activate/Deactivate methods
//////////////////////////////////////////////////////////////////////////
class ICameraSubComponent
{
public:
AZ_RTTI(ICameraSubComponent, "{5AB43B64-941E-493F-870F-DE313E4D11A0}");
virtual ~ICameraSubComponent() = default;
virtual void Init() {}
virtual void Activate(AZ::EntityId) = 0;
virtual void Deactivate() = 0;
};
} //namespace Camera