public void Read(UdpPacket packet) { this.Parent = packet.ReadBoltEntity(); for (int i = 0; i < this.Anchors.Length; i++) { this.Anchors[i].Entity = packet.ReadBoltEntity(); this.Anchors[i].Index = packet.ReadInt(); } }
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.Parent = packet.ReadBoltEntity(); this.Architects = new CoopConstructionExToken.ArchitectData[packet.ReadInt()]; for (int i = 0; i < this.Architects.Length; i++) { this.Architects[i].PointsCount = packet.ReadInt(); this.Architects[i].PointsPositions = new Vector3[packet.ReadInt()]; this.Architects[i].CustomToken = packet.ReadToken(); this.Architects[i].AboveGround = packet.ReadBool(); this.Architects[i].Support = packet.ReadBoltEntity(); for (int j = 0; j < this.Architects[i].PointsPositions.Length; j++) { this.Architects[i].PointsPositions[j] = packet.ReadVector3(); } } }
void IProtocolToken.Read(UdpPacket packet) { this.Parent = packet.ReadBoltEntity(); this.P1 = packet.ReadVector3(); this.P2 = packet.ReadVector3(); this.Support = packet.ReadBoltEntity(); this.Additions = (WallChunkArchitect.Additions)packet.ReadInt(); int num = packet.ReadInt(); if (num > 0) { this.PointsPositions = new Vector3[num]; for (int i = 0; i < num; i++) { this.PointsPositions[i] = packet.ReadVector3(); } } }
void IProtocolToken.Read(UdpPacket packet) { this.Scale = packet.ReadVector3(); this.HipPosition = packet.ReadVector3(); this.HipRotation = packet.ReadQuaternion(); this.MaterialIndex = packet.ReadInt(); this.skinDamage1 = packet.ReadFloat(); this.skinDamage2 = packet.ReadFloat(); this.skinDamage3 = packet.ReadFloat(); this.skinDamage4 = packet.ReadFloat(); this.storedRagDollName = packet.ReadInt(); if (packet.ReadBool()) { this.OriginalMutant = packet.ReadBoltEntity(); } this.Skinny = packet.ReadBool(); this.Props = packet.ReadInt(); }
void IProtocolToken.Read(UdpPacket packet) { this.Anchor = packet.ReadBoltEntity(); this.Index = packet.ReadInt(); }
void IProtocolToken.Read(UdpPacket packet) { this.playerTarget = packet.ReadBoltEntity(); this.pickup = packet.ReadBool(); this.putDown = packet.ReadBool(); }