예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
    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);
        }
    }
예제 #4
0
 public override void Read(UdpPacket packet)
 {
     Position = packet.ReadVector3();
     Rotation = packet.ReadQuaternion();
 }