Esempio n. 1
0
 public void Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     for (int i = 0; i < this.Anchors.Length; i++)
     {
         packet.WriteBoltEntity(this.Anchors[i].Entity);
         packet.WriteInt(this.Anchors[i].Index);
     }
 }
Esempio n. 2
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteFloat(this.Height);
     packet.WriteBoltEntity(this.Support);
     if (packet.WriteBool(this.Holes != null))
     {
         packet.WriteInt(this.Holes.Length);
         for (int i = 0; i < this.Holes.Length; i++)
         {
             packet.WriteVector3(this.Holes[i]._position);
             packet.WriteVector2(this.Holes[i]._size);
         }
     }
 }
Esempio n. 3
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteFloat(this.Height);
     packet.WriteBoltEntity(this.Support);
     if (packet.WriteBool(this.Holes != null))
     {
         packet.WriteInt(this.Holes.Length);
         for (int i = 0; i < this.Holes.Length; i++)
         {
             packet.WriteVector3(this.Holes[i]._position);
             packet.WriteVector2(this.Holes[i]._size);
         }
     }
 }
Esempio n. 4
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteVector3(this.P1);
     packet.WriteVector3(this.P2);
     packet.WriteBoltEntity(this.Support);
     packet.WriteInt((int)this.Additions);
     packet.WriteInt((this.PointsPositions == null) ? 0 : this.PointsPositions.Length);
     if (this.PointsPositions != null)
     {
         for (int i = 0; i < this.PointsPositions.Length; i++)
         {
             packet.WriteVector3(this.PointsPositions[i]);
         }
     }
 }
Esempio n. 5
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     packet.WriteInt(this.Architects.Length);
     for (int i = 0; i < this.Architects.Length; i++)
     {
         packet.WriteInt(this.Architects[i].PointsCount);
         packet.WriteInt(this.Architects[i].PointsPositions.Length);
         packet.WriteToken(this.Architects[i].CustomToken);
         packet.WriteBool(this.Architects[i].AboveGround);
         packet.WriteBoltEntity(this.Architects[i].Support);
         for (int j = 0; j < this.Architects[i].PointsPositions.Length; j++)
         {
             packet.WriteVector3(this.Architects[i].PointsPositions[j]);
         }
     }
 }
Esempio n. 6
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     if (packet.WriteBool(this.Holes != null))
     {
         int num = Mathf.Min(this.Holes.Length, 20);
         packet.WriteInt(num);
         for (int i = 0; i < num; i++)
         {
             packet.WriteVector3(this.Holes[i]._position);
             packet.WriteFloat(this.Holes[i]._yRotation);
             packet.WriteVector2(this.Holes[i]._size);
         }
     }
 }
Esempio n. 7
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.Scale);
     packet.WriteVector3(this.HipPosition);
     packet.WriteQuaternion(this.HipRotation);
     packet.WriteInt(this.MaterialIndex);
     packet.WriteFloat(this.skinDamage1);
     packet.WriteFloat(this.skinDamage2);
     packet.WriteFloat(this.skinDamage3);
     packet.WriteFloat(this.skinDamage4);
     packet.WriteInt(this.storedRagDollName);
     if (packet.WriteBool(this.OriginalMutant && this.OriginalMutant.IsAttached()))
     {
         packet.WriteBoltEntity(this.OriginalMutant);
     }
     packet.WriteBool(this.Skinny);
     packet.WriteInt(this.Props);
 }
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.Scale);
     packet.WriteVector3(this.HipPosition);
     packet.WriteQuaternion(this.HipRotation);
     packet.WriteInt(this.MaterialIndex);
     packet.WriteFloat(this.skinDamage1);
     packet.WriteFloat(this.skinDamage2);
     packet.WriteFloat(this.skinDamage3);
     packet.WriteFloat(this.skinDamage4);
     packet.WriteInt(this.storedRagDollName);
     if (packet.WriteBool(this.OriginalMutant && this.OriginalMutant.IsAttached()))
     {
         packet.WriteBoltEntity(this.OriginalMutant);
     }
     packet.WriteBool(this.Skinny);
     packet.WriteInt(this.Props);
 }
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Anchor);
     packet.WriteInt(this.Index);
 }
Esempio n. 10
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Anchor);
     packet.WriteInt(this.Index);
 }
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.playerTarget);
     packet.WriteBool(this.pickup);
     packet.WriteBool(this.putDown);
 }