2012-08-26 20:17:41 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
|
|
|
|
|
|
namespace ANX.Framework.Audio.XactParser
|
|
|
|
|
{
|
|
|
|
|
internal class XactGeneralSettingsRpcCurvePoint
|
|
|
|
|
{
|
|
|
|
|
public enum CurveType
|
|
|
|
|
{
|
|
|
|
|
Linear = 0x00,
|
|
|
|
|
Fast = 0x01,
|
|
|
|
|
Slow = 0x02,
|
|
|
|
|
SinCos = 0x03,
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-29 22:01:15 +00:00
|
|
|
|
public float X { get; private set; }
|
|
|
|
|
public float Y { get; private set; }
|
|
|
|
|
public CurveType Type { get; private set; }
|
2012-08-26 20:17:41 +00:00
|
|
|
|
|
2012-09-29 22:01:15 +00:00
|
|
|
|
public XactGeneralSettingsRpcCurvePoint(BinaryReader reader)
|
2012-08-26 20:17:41 +00:00
|
|
|
|
{
|
|
|
|
|
X = reader.ReadSingle();
|
|
|
|
|
Y = reader.ReadSingle();
|
2012-09-29 22:01:15 +00:00
|
|
|
|
Type = (CurveType)reader.ReadByte();
|
2012-08-26 20:17:41 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|