コード例 #1
0
ファイル: light.cs プロジェクト: p0lar-bear/Prometheus
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                _gelMap.ReadString(reader);
                _lensFlare.ReadString(reader);
                _lightVolume.ReadString(reader);
                for (x = 0; (x < _brightnessAnimation.Count); x = (x + 1))
                {
                    BrightnessAnimation.Add(new LightBrightnessAnimationBlockBlock());
                    BrightnessAnimation[x].Read(reader);
                }
                for (x = 0; (x < _brightnessAnimation.Count); x = (x + 1))
                {
                    BrightnessAnimation[x].ReadChildData(reader);
                }
                for (x = 0; (x < _colorAnimation.Count); x = (x + 1))
                {
                    ColorAnimation.Add(new LightColorAnimationBlockBlock());
                    ColorAnimation[x].Read(reader);
                }
                for (x = 0; (x < _colorAnimation.Count); x = (x + 1))
                {
                    ColorAnimation[x].ReadChildData(reader);
                }
                for (x = 0; (x < _gelAnimation.Count); x = (x + 1))
                {
                    GelAnimation.Add(new LightGelAnimationBlockBlock());
                    GelAnimation[x].Read(reader);
                }
                for (x = 0; (x < _gelAnimation.Count); x = (x + 1))
                {
                    GelAnimation[x].ReadChildData(reader);
                }
                _shader.ReadString(reader);
            }