Esempio n. 1
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Parent = packet.ReadBoltEntity();
     if (packet.ReadBool())
     {
         this.Holes = new Hole[packet.ReadInt()];
         for (int i = 0; i < this.Holes.Length; i++)
         {
             this.Holes[i]._position = packet.ReadVector3();
             this.Holes[i]._size     = packet.ReadVector2();
         }
     }
 }
Esempio n. 2
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.Parent = packet.ReadBoltEntity();
     this.Height = packet.ReadFloat();
     this.Support = packet.ReadBoltEntity();
     if (packet.ReadBool())
     {
         this.Holes = new Hole[packet.ReadInt()];
         for (int i = 0; i < this.Holes.Length; i++)
         {
             this.Holes[i]._position = packet.ReadVector3();
             this.Holes[i]._size = packet.ReadVector2();
         }
     }
 }
Esempio n. 3
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.size = packet.ReadVector2();
 }