Exemple #1
0
        /// <summary>
        /// 获取WIFI下自动播放语音开关。
        /// </summary>
        /// <param name="id">渠道编号。</param>
        /// <returns>是否WIFI下自动播放语音。</returns>
        public bool GetAutoSoundWifi(int id)
        {
            bool ret;

            if (m_AutoSoundWifi.TryGetValue(id, out ret))
            {
                return(ret);
            }

            string key = string.Format("CHAT_AUTO_SOUND_WIFI_{0}", id);

            ret = RoleUtility.GetBool(key, true);
            m_AutoSoundWifi.Add(id, ret);
            return(ret);
        }
Exemple #2
0
        /// <summary>
        /// 获取流量下自动播放语音开关。
        /// </summary>
        /// <param name="id">渠道编号。</param>
        /// <returns>是否流量下自动播放语音。</returns>
        public bool GetAutoSound4G(int id)
        {
            bool ret;

            if (m_AutoSound4G.TryGetValue(id, out ret))
            {
                return(ret);
            }

            string key = string.Format("CHAT_AUTO_SOUND_4G_{0}", id);

            ret = RoleUtility.GetBool(key, false);
            m_AutoSound4G.Add(id, ret);
            return(ret);
        }
Exemple #3
0
        /// <summary>
        /// 获取渠道开关。
        /// </summary>
        /// <param name="id">渠道编号。</param>
        /// <returns>是否接收渠道消息。</returns>
        public bool GetChannelSwitch(int id)
        {
            bool ret;

            if (m_ChannelSwitch.TryGetValue(id, out ret))
            {
                return(ret);
            }

            string key = string.Format("CHAT_CHANNEL_SWITCH_{0}", id);

            ret = RoleUtility.GetBool(key, true);
            m_ChannelSwitch.Add(id, ret);
            return(ret);
        }
Exemple #4
0
        /// <summary>
        /// 判断是否有播放过某动画。
        /// </summary>
        /// <param name="id">动画ID。</param>
        /// <returns>是否有播放过。</returns>
        public bool IsHavePlay(int id)
        {
            bool ret;

            if (m_PlayerAni.TryGetValue(id, out ret))
            {
                return(ret);
            }

            string key = string.Format("CUT_SCENE_{0}", id);

            ret = RoleUtility.GetBool(key, false);
            m_PlayerAni.Add(id, ret);

            return(ret);
        }