Refactor the handling of date time to no longer depend on a static
Build / Build (push) Successful in 10m13s
Build / Build (push) Successful in 10m13s
This commit is contained in:
11 files changed
+53
-39
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using System.CommandLine.Parsing;
|
||||
using PkmnLib.Dynamic.AI;
|
||||
using PkmnLib.Dynamic.Libraries;
|
||||
using PkmnLib.Dynamic.Plugins;
|
||||
using PkmnLib.Plugin.Gen7;
|
||||
using PkmnLib.Static.Utils;
|
||||
using Serilog;
|
||||
@@ -24,7 +25,10 @@ internal static class Program
|
||||
AILogging.LogHandler = Log.Debug;
|
||||
var library = DynamicLibraryImpl.Create([
|
||||
new Gen7Plugin(),
|
||||
]);
|
||||
], new PluginEnvironmentHelpers
|
||||
{
|
||||
DateTimeProvider = () => DateTimeOffset.Now,
|
||||
});
|
||||
_availableAIs = PokemonAI.InstantiateAis(library);
|
||||
|
||||
var testCommand = new Command("test", "Run two AIs against each other")
|
||||
|
||||
Reference in new issue
Block a user