예제 #1
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteVector3(this.p1);
     packet.WriteVector3(this.p2);
     packet.WriteInt(this.treeId);
     packet.WriteInt(this.treeId2);
 }
예제 #2
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]);
         }
     }
 }
예제 #3
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);
 }
예제 #4
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);
 }
예제 #5
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteInt(this.Views.Count);
     for (int i = 0; i < this.Views.Count; i++)
     {
         packet.WriteInt(this.Views[i].ItemId);
         packet.WriteVector3(this.Views[i].Position);
         packet.WriteQuaternion(this.Views[i].Rotation);
     }
 }
예제 #6
0
 void IProtocolToken.Write(UdpPacket packet)
 {
     packet.WriteBoltEntity(this.Parent);
     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);
         }
     }
 }
예제 #7
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);
         }
     }
 }
예제 #8
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);
         }
     }
 }
예제 #9
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]);
         }
     }
 }
예제 #10
0
 public override void Write(UdpPacket packet)
 {
     packet.WriteVector3(Position);
     packet.WriteQuaternion(Rotation);
 }