Beispiel #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);
            }
        }
Beispiel #2
0
 public NetAction()
 {
     ActParam = new ActionParam();
 }
Beispiel #3
0
 public virtual void SendParameterLocal(string id, ActionParam actionParam)
 {
 }
Beispiel #4
0
 public LogicAction()
 {
     ActParam = new ActionParam();
 }