关卡编辑器 战旗触发区改为条件

main
zhangaotian 2026-06-11 14:16:49 +08:00
parent f21adccec3
commit a1d7b599b2
2 changed files with 14 additions and 3 deletions

View File

@ -146,7 +146,7 @@ namespace Gameplay.Level
[HideInInspector] [LabelText("区域ID")] public int id;
[HideInInspector] [LabelText("区域点位")] public List<int> cellIndex = new List<int>();
[LabelText("所属战旗ID")] public int flagID;
[LabelText("区域争夺触发区ID")] public int triggerAreaID;
[HideInInspector] [LabelText("区域争夺触发区ID")] public int triggerTaskID;
[LabelText("占领时间")] public float captureTime;
}
@ -623,7 +623,7 @@ namespace Gameplay.Level
[HideInInspector] public List<BlockRegion> blockRegions = new();
/// <summary>
/// 防守
/// 触发
/// </summary>
[HideInInspector] public List<Region> defenseRegions = new();

View File

@ -1507,7 +1507,18 @@ public partial class LevelEditorWindow
[Serializable]
public class HoldFlagEditorInfo
{
[HorizontalGroup("1")] [ReadOnly] public int id;
[HorizontalGroup("0")] [ReadOnly] public int id;
[HorizontalGroup("1")] [LabelText("触发条件")] [ReadOnly]
public string triggerTask;
[HorizontalGroup("1")]
[Button("搜索/选择触发条件", ButtonSizes.Small)]
private void OpenTriggerTaskSelector()
{
currWindow.ShowTaskSelector("选择触发条件", taskName => triggerTask = taskName,
taskID => info.triggerTaskID = taskID);
}
[HorizontalGroup("2")] [LabelText("区域点位")] public List<int> Positions;