34 lines
972 B
C++
34 lines
972 B
C++
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// NoesisGUI - http://www.noesisengine.com
|
|
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#include <NsCore/Error.h>
|
|
|
|
|
|
namespace Noesis
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
inline KeyTimeType KeyTime::GetType() const
|
|
{
|
|
return mType;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
inline const TimeSpan& KeyTime::GetTimeSpan() const
|
|
{
|
|
NS_ASSERT(mType == KeyTimeType_TimeSpan);
|
|
return mTimeSpan;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
inline float KeyTime::GetPercent() const
|
|
{
|
|
NS_ASSERT(mType == KeyTimeType_Percent);
|
|
return mPercent;
|
|
}
|
|
|
|
}
|