2019-02-01 17:19:20 +00:00
|
|
|
|
namespace RobloxFiles.DataTypes
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
2019-02-01 18:40:39 +00:00
|
|
|
|
public class NumberSequenceKeypoint
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
|
|
|
|
public readonly float Time;
|
|
|
|
|
public readonly float Value;
|
|
|
|
|
public readonly float Envelope;
|
|
|
|
|
|
2019-11-01 02:40:31 +00:00
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"{Time} {Value} {Envelope}";
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-26 00:39:37 +00:00
|
|
|
|
public NumberSequenceKeypoint(float time, float value, float envelope = 0)
|
|
|
|
|
{
|
|
|
|
|
Time = time;
|
|
|
|
|
Value = value;
|
|
|
|
|
Envelope = envelope;
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-01 02:40:31 +00:00
|
|
|
|
internal NumberSequenceKeypoint(Attribute attr)
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
2019-11-01 02:40:31 +00:00
|
|
|
|
Envelope = attr.readFloat();
|
|
|
|
|
Time = attr.readFloat();
|
|
|
|
|
Value = attr.readFloat();
|
2019-01-26 00:39:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|