b4a2edec6a
* Final update copyright headers to reference license files at the repo root Signed-off-by: spham <spham@amazon.com> * Fix copyright validator unit tests to support the stale O3DE header scenario Signed-off-by: spham <spham@amazon.com>
50 lines
1.4 KiB
C++
50 lines
1.4 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
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef CRYINCLUDE_CRYMOVIE_BOOLTRACK_H
|
|
#define CRYINCLUDE_CRYMOVIE_BOOLTRACK_H
|
|
|
|
#pragma once
|
|
|
|
#include "IMovieSystem.h"
|
|
#include "AnimTrack.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/** Boolean track, every key on this track negates boolean value.
|
|
*/
|
|
class CBoolTrack
|
|
: public TAnimTrack<IBoolKey>
|
|
{
|
|
public:
|
|
AZ_CLASS_ALLOCATOR(CBoolTrack, AZ::SystemAllocator, 0);
|
|
AZ_RTTI(CBoolTrack, "{A98E28CB-DE42-47A3-8E4B-6B43A5F3D8B2}", IAnimTrack);
|
|
|
|
CBoolTrack();
|
|
|
|
virtual AnimValueType GetValueType();
|
|
|
|
|
|
virtual void GetValue(float time, bool& value);
|
|
virtual void SetValue(float time, const bool& value, bool bDefault = false);
|
|
|
|
void SerializeKey([[maybe_unused]] IBoolKey& key, [[maybe_unused]] XmlNodeRef& keyNode, [[maybe_unused]] bool bLoading) {};
|
|
void GetKeyInfo(int key, const char*& description, float& duration);
|
|
|
|
void SetDefaultValue(const bool bDefaultValue);
|
|
|
|
bool Serialize(XmlNodeRef& xmlNode, bool bLoading, bool bLoadEmptyTracks = true) override;
|
|
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
|
|
private:
|
|
bool m_bDefaultValue;
|
|
};
|
|
|
|
#endif // CRYINCLUDE_CRYMOVIE_BOOLTRACK_H
|