示例#1
0
        private static void initSystem()
        {
            bool flag = PlayeLocalInfo.checkKey(PlayeLocalInfo.VIDEO_QUALITY);

            if (flag)
            {
                SceneCamera.m_fScreenGQ_Level = float.Parse(PlayeLocalInfo.loadString(PlayeLocalInfo.VIDEO_QUALITY));
            }
            bool flag2 = PlayeLocalInfo.checkKey(PlayeLocalInfo.DYNAM_LIGHT);

            if (flag2)
            {
                bool flag3 = PlayeLocalInfo.loadInt(PlayeLocalInfo.DYNAM_LIGHT) != 0;
                if (flag3)
                {
                    SceneCamera.m_nLightGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.DYNAM_LIGHT);
                }
            }
            bool flag4 = PlayeLocalInfo.checkKey(PlayeLocalInfo.ROLE_SHADOW);

            if (flag4)
            {
                bool flag5 = PlayeLocalInfo.loadInt(PlayeLocalInfo.ROLE_SHADOW) != 0;
                if (flag5)
                {
                    SceneCamera.m_nShadowGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.ROLE_SHADOW);
                }
            }
            bool flag6 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SCENE_DETAIL);

            if (flag6)
            {
                bool flag7 = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCENE_DETAIL) != 0;
                if (flag7)
                {
                    SceneCamera.m_nSceneGQ_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SCENE_DETAIL);
                }
            }
            bool flag8 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_SOUND);

            if (flag8)
            {
                int   num         = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_SOUND);
                float soundVolume = (float)num / 100f;
                MediaClient.getInstance().setSoundVolume(soundVolume);
            }
            else
            {
                MediaClient.getInstance().setSoundVolume(0.8f);
            }
            bool flag9 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SYS_MUSIC);

            if (flag9)
            {
                int   num2        = PlayeLocalInfo.loadInt(PlayeLocalInfo.SYS_MUSIC);
                float musicVolume = (float)num2 / 100f;
                MediaClient.getInstance().setMusicVolume(musicVolume);
            }
            else
            {
                MediaClient.getInstance().setMusicVolume(0.8f);
            }
            bool flag10 = PlayeLocalInfo.checkKey(PlayeLocalInfo.SKILL_EFFECT);

            if (flag10)
            {
                int nSkillEff_Level = PlayeLocalInfo.loadInt(PlayeLocalInfo.SKILL_EFFECT);
                SceneCamera.m_nSkillEff_Level = nSkillEff_Level;
            }
        }