ConsoleTrack.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef CRYINCLUDE_CRYMOVIE_CONSOLETRACK_H
  9. #define CRYINCLUDE_CRYMOVIE_CONSOLETRACK_H
  10. #pragma once
  11. //forward declarations.
  12. #include "IMovieSystem.h"
  13. #include "AnimTrack.h"
  14. #include "AnimKey.h"
  15. /** EntityTrack contains entity keys, when time reach event key, it fires script event or start animation etc...
  16. */
  17. class CConsoleTrack
  18. : public TAnimTrack<IConsoleKey>
  19. {
  20. public:
  21. AZ_CLASS_ALLOCATOR(CConsoleTrack, AZ::SystemAllocator);
  22. AZ_RTTI(CConsoleTrack, "{5D61289C-DE66-40E6-8C2D-A6CBF41A6EF4}", IAnimTrack);
  23. //////////////////////////////////////////////////////////////////////////
  24. // Overrides of IAnimTrack.
  25. //////////////////////////////////////////////////////////////////////////
  26. void GetKeyInfo(int key, const char*& description, float& duration);
  27. void SerializeKey(IConsoleKey& key, XmlNodeRef& keyNode, bool bLoading);
  28. static void Reflect(AZ::ReflectContext* context);
  29. };
  30. #endif // CRYINCLUDE_CRYMOVIE_CONSOLETRACK_H