/* * Copyright (c) Contributors to the Open 3D Engine Project * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include namespace MultiplayerSample { class NetworkTestSpawnerComponentController : public NetworkTestSpawnerComponentControllerBase { public: NetworkTestSpawnerComponentController(NetworkTestSpawnerComponent& parent); void OnActivate(Multiplayer::EntityIsMigrating entityIsMigrating) override; void OnDeactivate(Multiplayer::EntityIsMigrating entityIsMigrating) override; private: int m_currentCount = 0; float m_accumulatedTime = 0.f; float m_sinceLastSpawn = 0.f; AZStd::deque> m_spawnedObjects; AZ::ScheduledEvent m_tickEvent; void TickEvent(); }; }