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) { int num = packet.ReadInt(); if (this.Views == null) { this.Views = new List <UpgradeViewReceiver.UpgradeViewData>(); } else { this.Views.Clear(); } for (int i = 0; i < num; i++) { UpgradeViewReceiver.UpgradeViewData upgradeViewData = new UpgradeViewReceiver.UpgradeViewData(); upgradeViewData.ItemId = packet.ReadInt(); upgradeViewData.Position = packet.ReadVector3(); upgradeViewData.Rotation = packet.ReadQuaternion(); this.Views.Add(upgradeViewData); } }
public override void Read(UdpPacket packet) { Position = packet.ReadVector3(); Rotation = packet.ReadQuaternion(); }