From d0d728c13010b7e82f4bedf6534ce3bb279f026f Mon Sep 17 00:00:00 2001 From: milimoe Date: Fri, 13 Dec 2024 01:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=B8=E6=88=8F=E5=B9=B3?= =?UTF-8?q?=E8=A1=A1=E5=B8=B8=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Desktop/FunGame.Testing.Desktop.csproj | 4 ++++ Library/FunGame.Testing.csproj | 4 ++++ Library/Main.cs | 7 ++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Desktop/FunGame.Testing.Desktop.csproj b/Desktop/FunGame.Testing.Desktop.csproj index c3b2779..1f93424 100644 --- a/Desktop/FunGame.Testing.Desktop.csproj +++ b/Desktop/FunGame.Testing.Desktop.csproj @@ -18,6 +18,10 @@ embedded + + + + ..\..\FunGame.Core\bin\Debug\net9.0\FunGame.Core.dll diff --git a/Library/FunGame.Testing.csproj b/Library/FunGame.Testing.csproj index cba56d9..940f099 100644 --- a/Library/FunGame.Testing.csproj +++ b/Library/FunGame.Testing.csproj @@ -23,6 +23,10 @@ + + + + diff --git a/Library/Main.cs b/Library/Main.cs index 978bdd6..9d6e14c 100644 --- a/Library/Main.cs +++ b/Library/Main.cs @@ -29,7 +29,12 @@ FunGameController controller = new(new Logger(new LoggerFacto Console.WriteLine(controller.CreateSaved(1, "test1")); Console.WriteLine(controller.CreateSaved(2, "test2")); -foreach (string str in controller.FightCustom(1, 2)) +PluginConfig pc = new("saved", "2"); +pc.LoadConfig(); +User user = FunGameService.GetUser(pc); +Console.WriteLine(user.Inventory); + +foreach (string str in controller.GetTest(false, true)) { Console.WriteLine(str); }