Exemplo n.º 1
0
        public override void Read(AssetReader reader)
        {
            base.Read(reader);

            X.Read(reader);
            Y.Read(reader);
            Z.Read(reader);
            Magnitude.Read(reader);
            SeparateAxis = reader.ReadBoolean();
            if (IsReadInWorldSpace(reader.Version))
            {
                InWorldSpace = reader.ReadBoolean();
            }
            if (IsReadMultiplyDragByParticleSize(reader.Version))
            {
                MultiplyDragByParticleSize     = reader.ReadBoolean();
                MultiplyDragByParticleVelocity = reader.ReadBoolean();
            }
            reader.AlignStream(AlignType.Align4);

            Dampen = reader.ReadSingle();
            if (IsReadDrag(reader.Version))
            {
                Drag.Read(reader);
            }
        }