mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2026-01-19 14:08:24 +00:00
一些适配
This commit is contained in:
parent
449ce578d2
commit
75ce024999
@ -709,9 +709,9 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
||||
return CharacterActionType.None; // 非玩家角色,由AI处理,或默认None
|
||||
}
|
||||
|
||||
private Dictionary<string, object> GamingQueue_CharacterInquiryEvent(GamingQueue character, Character actor, DecisionPoints dp, string topic, Dictionary<string, object> args)
|
||||
private InquiryResponse GamingQueue_CharacterInquiryEvent(GamingQueue character, Character actor, DecisionPoints dp, InquiryOptions options)
|
||||
{
|
||||
return [];
|
||||
return new(options);
|
||||
}
|
||||
|
||||
private static DecisionPoints GetDP(GamingQueue queue)
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Milimoe.FunGame.Core.Api.Utility;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
using Milimoe.FunGame.Core.Model;
|
||||
using Oshima.FunGame.OshimaMaps;
|
||||
using Oshima.FunGame.OshimaModules;
|
||||
@ -64,7 +65,12 @@ foreach (Character c in FunGameConstant.Characters)
|
||||
character.NormalAttack.Level = 8;
|
||||
character.Recovery();
|
||||
FunGameService.AddCharacterSkills(character, 1, 6, 6);
|
||||
Console.WriteLine(character.GetInfo());
|
||||
Console.WriteLine($"{character.ToStringWithOutUser()} - {CharacterSet.GetPrimaryAttributeName(character.PrimaryAttribute)}角色");
|
||||
foreach (Skill skill in character.Skills)
|
||||
{
|
||||
Console.WriteLine($"【{SkillSet.GetSkillTypeName(skill.SkillType)}】{skill.Name}\r\n{skill.Description}");
|
||||
}
|
||||
Console.WriteLine();
|
||||
}
|
||||
//foreach (Skill s in FunGameConstant.Skills)
|
||||
//{
|
||||
@ -97,20 +103,27 @@ Console.ReadKey();
|
||||
|
||||
while (true)
|
||||
{
|
||||
await FunGameSimulation.StartSimulationGame(true, false, true, false, useStore: false, hasMap: false);
|
||||
//DateTime start = DateTime.Now;
|
||||
//await FunGameSimulation.StartSimulationGame(true, false, true, false, useStore: false, hasMap: true);
|
||||
//DateTime end = DateTime.Now;
|
||||
//Console.WriteLine("模拟时长" + (end - start).TotalSeconds + "秒");
|
||||
//ConsoleKeyInfo key = Console.ReadKey();
|
||||
//if (key.Key == ConsoleKey.Escape)
|
||||
//{
|
||||
// break;
|
||||
//}
|
||||
await Task.Delay(100);
|
||||
await FunGameSimulation.StartSimulationGame(true, false, false, false, hasMap: false);
|
||||
//await Task.Delay(1);
|
||||
//start = DateTime.Now;
|
||||
//await FunGameSimulation.StartSimulationGame(true, false, false, false, hasMap: true);
|
||||
//key = Console.ReadKey();
|
||||
//if (key.Key == ConsoleKey.Escape)
|
||||
//{
|
||||
// break;
|
||||
//}
|
||||
await Task.Delay(100);
|
||||
//end = DateTime.Now;
|
||||
//Console.WriteLine("模拟时长" + (end - start).TotalSeconds + "秒");
|
||||
await FunGameSimulation.StartSimulationGame(false, false, true, false, useStore: false, hasMap: false);
|
||||
await FunGameSimulation.StartSimulationGame(false, false, false, false, hasMap: false);
|
||||
}
|
||||
|
||||
//strings.ForEach(Console.WriteLine);
|
||||
|
||||
@ -27,7 +27,7 @@ namespace Milimoe.FunGame.Testing.Tests
|
||||
Character teammate = new MagicalGirl();
|
||||
Console.ReadKey();
|
||||
teammate.SetLevel(60);
|
||||
Skill skill = new 毁灭之势(teammate);
|
||||
Skill skill = new 少女绮想(teammate);
|
||||
teammate.Skills.Add(skill);
|
||||
skill.GamingQueue = queue;
|
||||
skill.Character = teammate;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user