Exemplo n.º 1
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]);
         }
     }
 }