//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.GameLogic.PlugIns.PeriodicTasks;
using System.Runtime.InteropServices;
using MUnique.OpenMU.GameLogic.MiniGames;
using MUnique.OpenMU.PlugIns;
///
/// Interface for a mini game start plugin.
///
[PlugInPoint("Periodic Mini Game Start Plugins", "Plugin Container for mini game start plugins, e.g. for chaos castle.")]
[Guid("D88FFCCF-5C57-49E0-8E05-1C75A95A9AF2")]
public interface IPeriodicMiniGameStartPlugIn : IStrategyPlugIn, IPeriodicTaskPlugIn
{
///
/// Gets the duration until next start.
///
/// The game context.
/// The mini game definition.
///
/// The duration until next start.
///
ValueTask GetDurationUntilNextStartAsync(IGameContext gameContext, MiniGameDefinition miniGameDefinition);
///
/// Gets the mini game context, if available.
///
/// The game context.
/// The mini game definition.
/// The mini game context, if available.
ValueTask GetMiniGameContextAsync(IGameContext gameContext, MiniGameDefinition miniGameDefinition);
}