添加地图自动化模拟和新技能

This commit is contained in:
milimoe 2026-01-05 01:31:05 +08:00
parent 314c694ee2
commit 7c8d404eb5
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -1,7 +1,8 @@
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Milimoe.FunGame.Core.Api.Utility; using Milimoe.FunGame.Core.Api.Utility;
using Milimoe.FunGame.Core.Entity; using Milimoe.FunGame.Core.Entity;
using Milimoe.FunGame.Testing.Tests; using Milimoe.FunGame.Core.Model;
using Oshima.FunGame.OshimaMaps;
using Oshima.FunGame.OshimaModules; using Oshima.FunGame.OshimaModules;
using Oshima.FunGame.OshimaModules.Models; using Oshima.FunGame.OshimaModules.Models;
using Oshima.FunGame.OshimaServers.Service; using Oshima.FunGame.OshimaServers.Service;
@ -32,10 +33,13 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
//await CharacterTest.CharacterTest2(); //await CharacterTest.CharacterTest2();
ActivityTest.Test3(); //ActivityTest.Test3();
//await ActivityTest.Test(); //await ActivityTest.Test();
GamingQueue queue = new();
queue.LoadGameMap(new FastAutoMap());
//foreach (Item i in FunGameConstant.Equipment) //foreach (Item i in FunGameConstant.Equipment)
//{ //{
// Console.WriteLine(i.ToString(true, false)); // Console.WriteLine(i.ToString(true, false));
@ -43,6 +47,7 @@ ActivityTest.Test3();
foreach (Skill s in FunGameConstant.Skills) foreach (Skill s in FunGameConstant.Skills)
{ {
s.GamingQueue = queue;
s.Level = 6; s.Level = 6;
Console.WriteLine(s.GetInfo()); Console.WriteLine(s.GetInfo());
} }
@ -90,13 +95,13 @@ Console.ReadKey();
while (true) while (true)
{ {
await FunGameSimulation.StartSimulationGame(true, false, true, false, useStore: false); await FunGameSimulation.StartSimulationGame(true, false, true, false, useStore: false, hasMap: true);
ConsoleKeyInfo key = Console.ReadKey(); ConsoleKeyInfo key = Console.ReadKey();
if (key.Key == ConsoleKey.Escape) if (key.Key == ConsoleKey.Escape)
{ {
break; break;
} }
await FunGameSimulation.StartSimulationGame(true, false, false, false); await FunGameSimulation.StartSimulationGame(true, false, false, false, hasMap: true);
key = Console.ReadKey(); key = Console.ReadKey();
if (key.Key == ConsoleKey.Escape) if (key.Key == ConsoleKey.Escape)
{ {