Exemple #1
0
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                _model.ReadString(reader);
                _animationgraph.ReadString(reader);
                _indoorFogScreen.ReadString(reader);
                for (x = 0; (x < _shaderFunctions.Count); x = (x + 1))
                {
                    ShaderFunctions.Add(new SkyShaderFunctionBlock());
                    ShaderFunctions[x].Read(reader);
                }
                for (x = 0; (x < _shaderFunctions.Count); x = (x + 1))
                {
                    ShaderFunctions[x].ReadChildData(reader);
                }
                for (x = 0; (x < _animations.Count); x = (x + 1))
                {
                    Animations.Add(new SkyAnimationBlock());
                    Animations[x].Read(reader);
                }
                for (x = 0; (x < _animations.Count); x = (x + 1))
                {
                    Animations[x].ReadChildData(reader);
                }
                for (x = 0; (x < _lights.Count); x = (x + 1))
                {
                    Lights.Add(new SkyLightBlock());
                    Lights[x].Read(reader);
                }
                for (x = 0; (x < _lights.Count); x = (x + 1))
                {
                    Lights[x].ReadChildData(reader);
                }
            }
Exemple #2
0
            public virtual void ReadChildData(BinaryReader reader)
            {
                int x = 0;

                _renderModel.ReadString(reader);
                _animationGraph.ReadString(reader);
                for (x = 0; (x < _cubeMap.Count); x = (x + 1))
                {
                    CubeMap.Add(new SkyCubemapBlockBlock());
                    CubeMap[x].Read(reader);
                }
                for (x = 0; (x < _cubeMap.Count); x = (x + 1))
                {
                    CubeMap[x].ReadChildData(reader);
                }
                for (x = 0; (x < _atmosphericFog.Count); x = (x + 1))
                {
                    AtmosphericFog.Add(new SkyAtmosphericFogBlockBlock());
                    AtmosphericFog[x].Read(reader);
                }
                for (x = 0; (x < _atmosphericFog.Count); x = (x + 1))
                {
                    AtmosphericFog[x].ReadChildData(reader);
                }
                for (x = 0; (x < _secondaryFog.Count); x = (x + 1))
                {
                    SecondaryFog.Add(new SkyAtmosphericFogBlockBlock());
                    SecondaryFog[x].Read(reader);
                }
                for (x = 0; (x < _secondaryFog.Count); x = (x + 1))
                {
                    SecondaryFog[x].ReadChildData(reader);
                }
                for (x = 0; (x < _skyFog.Count); x = (x + 1))
                {
                    SkyFog.Add(new SkyFogBlockBlock());
                    SkyFog[x].Read(reader);
                }
                for (x = 0; (x < _skyFog.Count); x = (x + 1))
                {
                    SkyFog[x].ReadChildData(reader);
                }
                for (x = 0; (x < _patchyFog.Count); x = (x + 1))
                {
                    PatchyFog.Add(new SkyPatchyFogBlockBlock());
                    PatchyFog[x].Read(reader);
                }
                for (x = 0; (x < _patchyFog.Count); x = (x + 1))
                {
                    PatchyFog[x].ReadChildData(reader);
                }
                for (x = 0; (x < _lights.Count); x = (x + 1))
                {
                    Lights.Add(new SkyLightBlockBlock());
                    Lights[x].Read(reader);
                }
                for (x = 0; (x < _lights.Count); x = (x + 1))
                {
                    Lights[x].ReadChildData(reader);
                }
                for (x = 0; (x < _shaderFunctions.Count); x = (x + 1))
                {
                    ShaderFunctions.Add(new SkyShaderFunctionBlockBlock());
                    ShaderFunctions[x].Read(reader);
                }
                for (x = 0; (x < _shaderFunctions.Count); x = (x + 1))
                {
                    ShaderFunctions[x].ReadChildData(reader);
                }
                for (x = 0; (x < _animations.Count); x = (x + 1))
                {
                    Animations.Add(new SkyAnimationBlockBlock());
                    Animations[x].Read(reader);
                }
                for (x = 0; (x < _animations.Count); x = (x + 1))
                {
                    Animations[x].ReadChildData(reader);
                }
            }