diff --git a/DungeonShooting_Godot/src/game/ui/mapEditor/TileView/EditorTileMap.cs b/DungeonShooting_Godot/src/game/ui/mapEditor/TileView/EditorTileMap.cs index 737783f..6175254 100644 --- a/DungeonShooting_Godot/src/game/ui/mapEditor/TileView/EditorTileMap.cs +++ b/DungeonShooting_Godot/src/game/ui/mapEditor/TileView/EditorTileMap.cs @@ -123,11 +123,24 @@ /// 正在编辑的房间数据 /// public DungeonRoomSplit RoomSplit { get; private set; } - + /// /// 波数网格选中的索引 /// - public int SelectWaveIndex { get; set; } = -1; + public int SelectWaveIndex + { + get => _selectWaveIndex; + set + { + if (_selectWaveIndex != value) + { + _selectWaveIndex = value; + EventManager.EmitEvent(EventEnum.OnSelectWave, value); + } + } + } + + private int _selectWaveIndex = -1; /// /// 选中的预设 @@ -140,7 +153,7 @@ if (_selectPreinstallIndex != value) { _selectPreinstallIndex = value; - EventManager.EmitEvent(EventEnum.OnSelectPreinstall); + EventManager.EmitEvent(EventEnum.OnSelectPreinstall, value); } } }