-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to force select a mod collection by name
- Loading branch information
Showing
5 changed files
with
182 additions
and
65 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
src/IronyModManager.Common/Events/ModCollectionChangeRequestEvent.cs
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,53 @@ | ||
// *********************************************************************** | ||
// Assembly : IronyModManager.Common | ||
// Author : Mario | ||
// Created : 01-08-2025 | ||
// | ||
// Last Modified By : Mario | ||
// Last Modified On : 01-08-2025 | ||
// *********************************************************************** | ||
// <copyright file="ModCollectionChangeRequestEvent.cs" company="Mario"> | ||
// Mario | ||
// </copyright> | ||
// <summary></summary> | ||
// *********************************************************************** | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using IronyModManager.Models.Common; | ||
using IronyModManager.Shared.MessageBus; | ||
|
||
namespace IronyModManager.Common.Events | ||
{ | ||
/// <summary> | ||
/// Class ModCollectionChangeRequestEvent. | ||
/// Implements the <see cref="BaseNonAwaitableEvent" /> | ||
/// </summary> | ||
/// <seealso cref="BaseNonAwaitableEvent" /> | ||
public class ModCollectionChangeRequestEvent : BaseNonAwaitableEvent | ||
{ | ||
#region Constructors | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ModCollectionChangeRequestEvent"/> class. | ||
/// </summary> | ||
/// <param name="modCollection">The mod collection.</param> | ||
public ModCollectionChangeRequestEvent(IModCollection modCollection) | ||
{ | ||
ModCollection = modCollection; | ||
} | ||
|
||
#endregion Constructors | ||
|
||
#region Properties | ||
|
||
/// <summary> | ||
/// Gets the mod collection. | ||
/// </summary> | ||
/// <value>The mod collection.</value> | ||
public IModCollection ModCollection { get; private set; } | ||
|
||
#endregion Properties | ||
} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
src/IronyModManager/Implementation/MessageBus/Events/ModCollectionChangeRequestHandler.cs
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,31 @@ | ||
// *********************************************************************** | ||
// Assembly : IronyModManager | ||
// Author : Mario | ||
// Created : 01-08-2025 | ||
// | ||
// Last Modified By : Mario | ||
// Last Modified On : 01-08-2025 | ||
// *********************************************************************** | ||
// <copyright file="ModCollectionChangeRequestHandler.cs" company="Mario"> | ||
// Mario | ||
// </copyright> | ||
// <summary></summary> | ||
// *********************************************************************** | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using IronyModManager.Common.Events; | ||
using IronyModManager.Shared.MessageBus; | ||
|
||
namespace IronyModManager.Implementation.MessageBus.Events | ||
{ | ||
/// <summary> | ||
/// Class ModCollectionChangeRequestHandler. | ||
/// Implements the <see cref="IronyModManager.Shared.MessageBus.BaseMessageBusConsumer{IronyModManager.Common.Events.ModCollectionChangeRequestEvent}" /> | ||
/// </summary> | ||
/// <seealso cref="IronyModManager.Shared.MessageBus.BaseMessageBusConsumer{IronyModManager.Common.Events.ModCollectionChangeRequestEvent}" /> | ||
public class ModCollectionChangeRequestHandler : BaseMessageBusConsumer<ModCollectionChangeRequestEvent> | ||
{ | ||
} | ||
} |
Oops, something went wrong.