Files
PkmnLib.NET/PkmnLib.Dynamic/Plugins/PluginEnvironmentHelpers.cs
T
2026-11-14 21:46:12 +01:00

18 lines
647 B
C#

namespace PkmnLib.Dynamic.Plugins;
/// <summary>
/// Helper functions to get information about the environment we're running in, such as the current date time.
/// </summary>
public class PluginEnvironmentHelpers
{
/// <summary>
/// A delegate that provides the current date and time.
/// </summary>
public delegate DateTimeOffset DateTimeProviderDelegate();
/// <summary>
/// A function to get the current date and time. This can be replaced in cases where the date and time
/// may not be the same as the system time.
/// </summary>
public required DateTimeProviderDelegate DateTimeProvider { get; init; }
}