void IProtocolToken.Write(UdpPacket packet) { packet.WriteInt(this.Views.Count); for (int i = 0; i < this.Views.Count; i++) { packet.WriteInt(this.Views[i].ItemId); packet.WriteVector3(this.Views[i].Position); packet.WriteQuaternion(this.Views[i].Rotation); } }
void IProtocolToken.Write(UdpPacket packet) { packet.WriteVector3(this.Scale); packet.WriteVector3(this.HipPosition); packet.WriteQuaternion(this.HipRotation); packet.WriteInt(this.MaterialIndex); packet.WriteFloat(this.skinDamage1); packet.WriteFloat(this.skinDamage2); packet.WriteFloat(this.skinDamage3); packet.WriteFloat(this.skinDamage4); packet.WriteInt(this.storedRagDollName); if (packet.WriteBool(this.OriginalMutant && this.OriginalMutant.IsAttached())) { packet.WriteBoltEntity(this.OriginalMutant); } packet.WriteBool(this.Skinny); packet.WriteInt(this.Props); }
public override void Write(UdpPacket packet) { packet.WriteVector3(Position); packet.WriteQuaternion(Rotation); }