Attribute -> RbxAttribute

This commit is contained in:
Max
2021-06-05 17:21:12 -05:00
parent 71cd85513e
commit 5dc65e2184
23 changed files with 76 additions and 133 deletions

View File

@ -18,13 +18,6 @@
Envelope = envelope;
}
internal NumberSequenceKeypoint(Attribute attr)
{
Envelope = attr.ReadFloat();
Time = attr.ReadFloat();
Value = attr.ReadFloat();
}
public override int GetHashCode()
{
int hash = Time.GetHashCode()

View File

@ -37,16 +37,6 @@ namespace RobloxFiles.DataTypes
ElasticityWeight = elasticityWeight;
}
internal PhysicalProperties(Attribute attr)
{
Density = attr.ReadFloat();
Friction = attr.ReadFloat();
Elasticity = attr.ReadFloat();
FrictionWeight = attr.ReadFloat();
ElasticityWeight = attr.ReadFloat();
}
public override int GetHashCode()
{
int hash = Density.GetHashCode()

View File

@ -11,12 +11,6 @@
Max = max ?? new Vector3int16();
}
internal Region3int16(Attribute attr)
{
Min = new Vector3int16(attr);
Max = new Vector3int16(attr);
}
public override int GetHashCode()
{
int hash = Min.GetHashCode()

View File

@ -19,12 +19,6 @@ namespace RobloxFiles.DataTypes
Y = (short)y;
}
internal Vector2int16(Attribute attr)
{
X = attr.ReadShort();
Y = attr.ReadShort();
}
private delegate Vector2int16 Operator(Vector2int16 a, Vector2int16 b);
private static Vector2int16 upcastShortOp(Vector2int16 vec, short num, Operator upcast)

View File

@ -25,13 +25,6 @@ namespace RobloxFiles.DataTypes
Z = (short)z;
}
internal Vector3int16(Attribute attr)
{
X = attr.ReadShort();
Y = attr.ReadShort();
Z = attr.ReadShort();
}
private delegate Vector3int16 Operator(Vector3int16 a, Vector3int16 b);
private static Vector3int16 upcastShortOp(Vector3int16 vec, short num, Operator upcast)