Пример #1
0
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                for (x = 0; (x < _physicsConstants.Count); x = (x + 1))
                {
                    PhysicsConstants.Add(new ParticleSystemPhysicsConstantsBlock());
                    PhysicsConstants[x].Read(reader);
                }
                for (x = 0; (x < _physicsConstants.Count); x = (x + 1))
                {
                    PhysicsConstants[x].ReadChildData(reader);
                }
                for (x = 0; (x < _states.Count); x = (x + 1))
                {
                    States.Add(new ParticleSystemTypeStatesBlock());
                    States[x].Read(reader);
                }
                for (x = 0; (x < _states.Count); x = (x + 1))
                {
                    States[x].ReadChildData(reader);
                }
                for (x = 0; (x < _particleStates.Count); x = (x + 1))
                {
                    ParticleStates.Add(new ParticleSystemTypeParticleStatesBlock());
                    ParticleStates[x].Read(reader);
                }
                for (x = 0; (x < _particleStates.Count); x = (x + 1))
                {
                    ParticleStates[x].ReadChildData(reader);
                }
            }
Пример #2
0
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                _bitmaps.ReadString(reader);
                _pointPhysics.ReadString(reader);
                _bitmap.ReadString(reader);
                for (x = 0; (x < _physicsConstants.Count); x = (x + 1))
                {
                    PhysicsConstants.Add(new ParticleSystemPhysicsConstantsBlock());
                    PhysicsConstants[x].Read(reader);
                }
                for (x = 0; (x < _physicsConstants.Count); x = (x + 1))
                {
                    PhysicsConstants[x].ReadChildData(reader);
                }
            }