Exemple #1
0
 public void ReadChildData(BinaryReader reader)
 {
     _model.ReadString(reader);
     _animation_graph.ReadString(reader);
     _indoorFogScreen.ReadString(reader);
     for (int x = 0; x < _shaderFunctions.Count; x++)
     {
         ShaderFunctions.AddNew();
         ShaderFunctions[x].Read(reader);
     }
     for (int x = 0; x < _shaderFunctions.Count; x++)
     {
         ShaderFunctions[x].ReadChildData(reader);
     }
     for (int x = 0; x < _animations.Count; x++)
     {
         Animations.AddNew();
         Animations[x].Read(reader);
     }
     for (int x = 0; x < _animations.Count; x++)
     {
         Animations[x].ReadChildData(reader);
     }
     for (int x = 0; x < _lights.Count; x++)
     {
         Lights.AddNew();
         Lights[x].Read(reader);
     }
     for (int x = 0; x < _lights.Count; x++)
     {
         Lights[x].ReadChildData(reader);
     }
 }
Exemple #2
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 #3
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);
                }
            }