mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 10:14:14 +00:00
forgot to write these
This commit is contained in:
parent
a40d8a2cf5
commit
1ee4de154a
@ -10,11 +10,11 @@ namespace QSB.MeteorSync.Events
|
||||
public float OrigIntegrity;
|
||||
public float LeashLength;
|
||||
|
||||
public bool IsThruWhiteHole;
|
||||
public Vector3 Pos;
|
||||
public Quaternion Rot;
|
||||
public Vector3 Vel;
|
||||
public Vector3 AngVel;
|
||||
public bool IsThruWhiteHole;
|
||||
|
||||
public override void Deserialize(QNetworkReader reader)
|
||||
{
|
||||
@ -24,11 +24,11 @@ namespace QSB.MeteorSync.Events
|
||||
LeashLength = reader.ReadSingle();
|
||||
if (Integrity <= 0)
|
||||
{
|
||||
IsThruWhiteHole = reader.ReadBoolean();
|
||||
Pos = reader.ReadVector3();
|
||||
Rot = reader.ReadQuaternion();
|
||||
Vel = reader.ReadVector3();
|
||||
AngVel = reader.ReadVector3();
|
||||
IsThruWhiteHole = reader.ReadBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
@ -41,6 +41,10 @@ namespace QSB.MeteorSync.Events
|
||||
if (Integrity <= 0)
|
||||
{
|
||||
writer.Write(IsThruWhiteHole);
|
||||
writer.Write(Pos);
|
||||
writer.Write(Rot);
|
||||
writer.Write(Vel);
|
||||
writer.Write(AngVel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user