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); } } }
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); } } }
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); } } }
void IProtocolToken.Write(UdpPacket packet) { packet.WriteVector2(this.size); }