Files
UnrealEngine/Engine/Source/Programs/UnrealToolbox/IToolCatalog.cs
2025-05-18 13:04:45 +08:00

32 lines
733 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace UnrealToolbox
{
/// <summary>
/// Interface for the tool catalog
/// </summary>
public interface IToolCatalog
{
/// <summary>
/// Whether to auto-update tools to latest
/// </summary>
bool AutoUpdate { get; set; }
/// <summary>
/// Asynchronously request an update of tool catalog
/// Listen on <see cref="OnItemsChanged"/> for when items actually update.
/// </summary>
void RequestUpdate();
/// <summary>
/// List of available tools
/// </summary>
IReadOnlyList<IToolCatalogItem> Items { get; }
/// <summary>
/// Notification that some property of the items list has changed
/// </summary>
event Action? OnItemsChanged;
}
}