Slight cleanup, do some TODOs
Build / Build (push) Successful in 51s

This commit is contained in:
Deukhoofd committed 2025-06-22 10:42:25 +02:00
1 parent e305cfaef6
commit 2533512eda
114 files changed
+218 -168

No files matched your search

+7 -1
View File
@@ -5,11 +5,17 @@ namespace PkmnLib.Dynamic;
/// </summary>
public static class StaticHelpers
{
/// <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 static Func<DateTimeOffset> DateTimeProvider { get; set; } = () => DateTimeOffset.Now;
[PublicAPI]
public static DateTimeProviderDelegate DateTimeProvider { get; set; } = () => DateTimeOffset.Now;
/// <summary>
/// Get the current date and time.