コード例 #1
0
 /// <summary>
 /// 执行游戏动作基类
 /// </summary>
 /// <param name="runType">游戏动作子类</param>
 /// <param name="id">游戏动作ID</param>
 /// <param name="childs">子条件</param>
 /// <param name="parent">父条件</param>
 protected BaseConditAction(
     ActionRunType runType,
     ConditActionName id,
     IConditAction parent        = null,
     List <IConditAction> childs = null)
 {
     this.ID     = new ActionID(ActionTypeCode.Condit, (byte)runType, (ushort)id);
     this.Parent = parent;
     this.Childs = childs;
 }
コード例 #2
0
 /// <summary>
 /// 执行游戏动作基类
 /// </summary>
 /// <param name="runType">游戏动作子类</param>
 /// <param name="id">游戏动作ID</param>
 public BaseExecuteAction(ActionRunType runType, ExecuteActionName id)
 {
     this.ID = new ActionID(ActionTypeCode.Execute, (byte)runType, (ushort)id);
 }