This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

49
CryMovie/BoolTrack.h Normal file
View File

@@ -0,0 +1,49 @@
////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2002.
// -------------------------------------------------------------------------
// File name: booltrack.h
// Version: v1.00
// Created: 4/6/2002 by Timur.
// Compilers: Visual Studio.NET
// Description:
// -------------------------------------------------------------------------
// History:
//
////////////////////////////////////////////////////////////////////////////
#ifndef __booltrack_h__
#define __booltrack_h__
#if _MSC_VER > 1000
#pragma once
#endif
#include "IMovieSystem.h"
#include "AnimTrack.h"
//! Boolean key.
struct IBoolKey : public IKey
{
IBoolKey() {};
};
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
/** Boolean track, every key on this track negates boolean value.
*/
class CBoolTrack : public TAnimTrack<IBoolKey>
{
public:
virtual EAnimTrackType GetType() { return ATRACK_BOOL; };
virtual EAnimValue GetValueType() { return AVALUE_BOOL; };
virtual void GetValue( float time,bool &value );
virtual void SetValue( float time,const bool &value,bool bDefault=false );
void SerializeKey( IBoolKey &key,XmlNodeRef &keyNode,bool bLoading ) {};
void GetKeyInfo( int key,const char* &description,float &duration );
};
#endif // __booltrack_h__