Allow tools to disable themselves

This commit is contained in:
Gustas
2025-07-21 13:25:30 +03:00
committed by Matthias Mailänder
parent f8921226b8
commit 42181d77a5
10 changed files with 95 additions and 45 deletions

View File

@@ -977,10 +977,12 @@ namespace OpenRA.Mods.Common.Traits
bool PathMightExistForLocomotorBlockedByImmovable(Locomotor locomotor, CPos source, CPos target);
}
public interface IEditorToolInfo : ITraitInfoInterface
public interface IEditorTool
{
string Label { get; }
string PanelWidget { get; }
bool IsEnabled { get; }
TraitInfo TraitInfo { get; }
}
public class MapGenerationException : Exception