Example #1
0
        public bool CallLogicAction(ActionDefine actionType, ActionParam param)
        {
            try
            {
                LogicAction action = (LogicAction)LogicActionFactory.Instance.CreateAction(actionType);
                if (null == action)
                {
                    return(false);
                }
                action.ActionId = (int)actionType;
                action.ActParam = param;

                lock (m_QueueLogicAction)
                {
                    m_QueueLogicAction.Enqueue(action);
                }
                return(true);
            }
            catch (Exception ex)
            {
                DebugMod.LogException(ex);
                return(false);
            }
        }
Example #2
0
 public NetAction()
 {
     ActParam = new ActionParam();
 }
Example #3
0
 public virtual void SendParameterLocal(string id, ActionParam actionParam)
 {
 }
Example #4
0
 public LogicAction()
 {
     ActParam = new ActionParam();
 }