-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.优化了共享变量的显示逻辑,使用ForcedSharedAttribute对共享变量进行强制共享 2.加入方便的拖拽复制功能
- Loading branch information
Showing
84 changed files
with
613 additions
and
832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System.Collections.Generic; | ||
using UnityEditor.Experimental.GraphView; | ||
using UnityEngine; | ||
namespace Kurisu.AkiBT.Editor | ||
{ | ||
public interface ITreeView | ||
{ | ||
/// <summary> | ||
/// 将选中结点加入Group并创建Block | ||
/// </summary> | ||
/// <param name="node"></param> | ||
void SelectGroup(BehaviorTreeNode node); | ||
/// <summary> | ||
/// 取消Group | ||
/// </summary> | ||
void UnSelectGroup(); | ||
/// <summary> | ||
/// 复制结点 | ||
/// </summary> | ||
/// <param name="node"></param> | ||
/// <returns></returns> | ||
BehaviorTreeNode DuplicateNode(BehaviorTreeNode node); | ||
/// <summary> | ||
/// 编辑器名称 | ||
/// </summary> | ||
string treeEditorName{get;} | ||
/// <summary> | ||
/// 共享变量名称修改事件(手动触发) | ||
/// </summary> | ||
event System.Action<SharedVariable> OnPropertyNameChangeEvent; | ||
/// <summary> | ||
/// 共享变量名称编辑事件(自动触发) | ||
/// </summary> | ||
event System.Action<SharedVariable> OnPropertyNameEditingEvent; | ||
List<SharedVariable> ExposedProperties{get;} | ||
/// <summary> | ||
/// 是否在Restore中 | ||
/// </summary> | ||
/// <value></value> | ||
bool IsRestored{get;} | ||
/// <summary> | ||
/// 添加共享变量到黑板 | ||
/// </summary> | ||
/// <param name="variable"></param> | ||
/// <typeparam name="T"></typeparam> | ||
void AddPropertyToBlackBoard(SharedVariable variable); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
AkiST/Editor/SkillEditorWindow.cs.meta → ...T/Editor/Core/Interface/ITreeView.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.