/// <summary> /// 检查是否需要重新编辑 /// </summary> /// <returns>是否需要重新编辑</returns> public bool RequestEdit() { bool result = false; AI_Action action = ActionTable.FindItemByDBID(this.DBID); if (action != null) { if (this.Args.Count == action.Args.Count) { for (int i = 0; i < this.Args.Count; i++) { AI_Parm parameter1 = this.Args[i]; AI_Parm parameter2 = action.Args[i]; if (parameter1.m_type != parameter2.m_type) { result = true; break; } } } else { result = true; } } return(result); }
/// <summary> /// 刷新动作数据 /// </summary> public void Reload() { AI_Action action = ActionTable.FindItemByDBID(this.DBID); if (action != null) { this.ActionID = action.ActionID; this.Name = action.Name; this.Ename = action.Ename; this.Info = action.Info; this.ActionType = action.ActionType; this.rettype = action.rettype; } }