示例#1
0
        /// <summary>
        /// tip_message
        /// {
        ///     t_id:2222222
        ///     type:[1,2]  显示方式 参考words表格
        ///     localize:
        ///     {
        ///         id:xxxxxxx
        ///         param:[ssss,dddf,f,f,dd]
        ///     }
        ///     s:222233333//开始时间
        ///     e:222233333//结束时间
        ///		d:10//间隔
        /// }
        /// </summary>
        void OnNormalMessage(object payload)
        {
            string t_id = string.Empty;

            t_id = EB.Dot.String("t_id", payload, t_id);

            if (string.IsNullOrEmpty(t_id))
            {
                ShowNormalMessage(payload);
            }
            else
            {
                int s = EB.Dot.Integer("s", payload, 0);
                int e = EB.Dot.Integer("e", payload, 0);
                int d = EB.Dot.Integer("d", payload, 0);
                DeltaActionExcuter action = new DeltaActionExcuter(t_id, s, e, d, "DeltaTipAction", payload);
                action.Register();
            }
        }
示例#2
0
        void ProcessLoginRateMessage()
        {
            ArrayList messages = null;

            DataLookupsCache.Instance.SearchDataByID <ArrayList>("RateMessage", out messages);

            if (messages != null)
            {
                for (int i = 0; i < messages.Count; i++)
                {
                    string t_id = string.Empty;
                    t_id = EB.Dot.String("t_id", messages[i], t_id);

                    if (!string.IsNullOrEmpty(t_id))
                    {
                        int s = EB.Dot.Integer("s", messages[i], 0);
                        int e = EB.Dot.Integer("e", messages[i], 0);
                        int d = EB.Dot.Integer("d", messages[i], 0);
                        DeltaActionExcuter action = new DeltaActionExcuter(t_id, s, e, d, "DeltaTipAction", messages[i]);
                        action.Register();
                    }
                }
            }
        }
示例#3
0
 public void AddDeltaActionExcute(DeltaActionExcuter excuter)
 {
     m_deltaActionManager.AddAction(excuter);
 }
示例#4
0
 public void AddAction(DeltaActionExcuter action)
 {
     m_schedulers.Add(action);
     EB.Debug.Log("DeltaAction {0} is Start s={1} e={2} d={3}", action.id, action.start, action.end, action.delta);
 }