1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * 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 <Source/AutoGen/SimplePlayerCameraComponent.AutoComponent.h>
- #include <AzCore/Component/TickBus.h>
- namespace MultiplayerSample
- {
- class SimplePlayerCameraComponentController
- : public SimplePlayerCameraComponentControllerBase
- , private AZ::TickBus::Handler
- {
- public:
- SimplePlayerCameraComponentController(SimplePlayerCameraComponent& parent);
- void OnActivate(Multiplayer::EntityIsMigrating entityIsMigrating);
- void OnDeactivate(Multiplayer::EntityIsMigrating entityIsMigrating);
- float GetCameraYaw() const;
- float GetCameraPitch() const;
- float GetCameraRoll() const;
- private:
- //! AZ::TickBus interface
- //! @{
- void OnTick(float deltaTime, AZ::ScriptTimePoint time) override;
- int GetTickOrder() override;
- //! @}
- AZ::Entity* m_activeCameraEntity = nullptr;
- };
- }
|