更新 Main.cs

This commit is contained in:
milimoe 2025-01-26 17:44:52 +08:00 committed by GitHub
parent ebe8efa8a6
commit 0fb93b80ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,8 @@ using Oshima.FunGame.OshimaModules;
using Oshima.FunGame.OshimaServers.Service; using Oshima.FunGame.OshimaServers.Service;
using Oshima.FunGame.WebAPI.Controllers; using Oshima.FunGame.WebAPI.Controllers;
//0
//_ = new Milimoe.FunGame.Testing.Tests.CheckDLL(); //_ = new Milimoe.FunGame.Testing.Tests.CheckDLL();
Console.WriteLine(); Console.WriteLine();
@ -45,7 +47,7 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
//skillargs.Add("active", true); //skillargs.Add("active", true);
//skillargs.Add("self", true); //skillargs.Add("self", true);
//skillargs.Add("enemy", false); //skillargs.Add("enemy", false);
//Skill skill = Factory.OpenFactory.GetInstance<Skill>((long)EffectID.GetEXP, "经验书", skillargs); //Skill skill = Factory.OpenFactory.GetInstance<Skill>((long)EffectID.GetEXP, "¾­ÑéÊé", skillargs);
//Dictionary<string, object> effectargs = new() //Dictionary<string, object> effectargs = new()
//{ //{
// { "skill", skill }, // { "skill", skill },
@ -75,7 +77,7 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
// Console.WriteLine(str); // Console.WriteLine(str);
//} //}
//库存测试 //¿â´æ²âÊÔ
//PluginConfig pc = new("saved", "1"); //PluginConfig pc = new("saved", "1");
//pc.LoadConfig(); //pc.LoadConfig();
//User u = FunGameService.GetUser(pc); //User u = FunGameService.GetUser(pc);
@ -100,7 +102,7 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
//for (int i = 1; i <= 100; i++) //for (int i = 1; i <= 100; i++)
//{ //{
// Console.WriteLine($"{i}次:" + string.Join("\r\n", controller.DrawCards(1))); // Console.WriteLine($"{i}´Î£º" + string.Join("\r\n", controller.DrawCards(1)));
//} //}
//Console.WriteLine(NetworkUtility.JsonDeserialize<string>(controller.GetInventoryInfo(1))); //Console.WriteLine(NetworkUtility.JsonDeserialize<string>(controller.GetInventoryInfo(1)));
//Console.WriteLine(string.Join("\r\n", controller.GetInventoryInfo2(1, 2))); //Console.WriteLine(string.Join("\r\n", controller.GetInventoryInfo2(1, 2)));