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