Roblox-File-Format/DataTypes/NumberSequenceKeypoint.cs
CloneTrooper1019 e14b092aa7 Added read support for Instance Attributes.
This isn't 100% finished yet. I intend to add some better API for reading specific attributes, as well as write support (of course!)
2019-10-31 21:40:31 -05:00

29 lines
698 B
C#

namespace RobloxFiles.DataTypes
{
public class NumberSequenceKeypoint
{
public readonly float Time;
public readonly float Value;
public readonly float Envelope;
public override string ToString()
{
return $"{Time} {Value} {Envelope}";
}
public NumberSequenceKeypoint(float time, float value, float envelope = 0)
{
Time = time;
Value = value;
Envelope = envelope;
}
internal NumberSequenceKeypoint(Attribute attr)
{
Envelope = attr.readFloat();
Time = attr.readFloat();
Value = attr.readFloat();
}
}
}