public override void Read(UdpPacket packet)
 {
     hitPosition.x = packet.ReadFloat();
     hitPosition.y = packet.ReadFloat();
     hitPosition.z = packet.ReadFloat();
     hitType       = packet.ReadBool();
 }
Example #2
0
 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]            = new Hole();
             this.Holes[i]._position  = packet.ReadVector3();
             this.Holes[i]._yRotation = packet.ReadFloat();
             this.Holes[i]._size      = packet.ReadVector2();
         }
     }
 }
Example #3
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();
 }
 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();
 }
Example #5
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                DeathState      = (DeathState)packet.ReadInt();
                FactionId       = packet.ReadInt();
                ModelId         = packet.ReadInt();
                OriginalModelId = packet.ReadInt();
                FreeForAll      = packet.ReadBool();
                Scale           = packet.ReadFloat();
            }
Example #6
0
 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();
         }
     }
 }
Example #7
0
            public override void Read(UdpPacket packet)
            {
                base.Read(packet);

                VisualEffectFlags = (UnitVisualEffectFlags)packet.ReadInt();
                DisplayPowerType  = (SpellPowerType)packet.ReadInt();
                DeathState        = (DeathState)packet.ReadInt();
                EmoteType         = (EmoteType)packet.ReadInt();
                ClassType         = (ClassType)packet.ReadInt();
                FactionId         = packet.ReadInt();
                ModelId           = packet.ReadInt();
                OriginalModelId   = packet.ReadInt();
                OriginalAIInfoId  = packet.ReadInt();
                DisplayPower      = packet.ReadInt();
                DisplayPowerMax   = packet.ReadInt();
                FreeForAll        = packet.ReadBool();
                Scale             = packet.ReadFloat();
            }
Example #8
0
    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();
        this.Height    = packet.ReadFloat();
        int num = packet.ReadInt();

        if (num > 0)
        {
            this.PointsPositions = new Vector3[num];
            for (int i = 0; i < num; i++)
            {
                this.PointsPositions[i] = packet.ReadVector3();
            }
        }
    }
Example #9
0
 void IProtocolToken.Read(UdpPacket packet)
 {
     this.bottomY = packet.ReadFloat();
 }