From b123c09ac5897d349f72fe5b754aecaa76448618 Mon Sep 17 00:00:00 2001 From: ud18010 Date: Thu, 30 Jul 2026 15:35:49 +0800 Subject: [PATCH] feat: add fighter quantao01 behavior config --- .../Game/Config/ActorBehavior/fighter_skill.json | 11 +++++++++++ .../ActorBehavior/BehaviorConfigCatalogTests.cs | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/Client/Assets/Game/Config/ActorBehavior/fighter_skill.json b/Client/Assets/Game/Config/ActorBehavior/fighter_skill.json index fcfb338c..74b3fc1e 100644 --- a/Client/Assets/Game/Config/ActorBehavior/fighter_skill.json +++ b/Client/Assets/Game/Config/ActorBehavior/fighter_skill.json @@ -25,6 +25,17 @@ ] } ] + }, + { + "id": "quantao01", + "duration": 1.0, + "canBeInterrupted": true, + "input": "DirectionOrTarget", + "timeline": [ + { "time": 0.0, "kind": "Animation", "animation": "Assets/Game/Art/Actor/Controller/Class/140/140_skill01a_qt.FBX", "duration": 1.0 }, + { "time": 0.0, "kind": "Effect", "prefab": "Assets/Game/Art/Effect/Prefab/skill/9110004_zhujue_quantao_skill01a.prefab", "duration": 1.0 } + ], + "logicEffects": [] } ] } diff --git a/Server/Framework.Shared.Tests/ActorBehavior/BehaviorConfigCatalogTests.cs b/Server/Framework.Shared.Tests/ActorBehavior/BehaviorConfigCatalogTests.cs index 0fd84fb2..9583c3d3 100644 --- a/Server/Framework.Shared.Tests/ActorBehavior/BehaviorConfigCatalogTests.cs +++ b/Server/Framework.Shared.Tests/ActorBehavior/BehaviorConfigCatalogTests.cs @@ -117,6 +117,14 @@ namespace XWorld.Framework.Tests.ActorBehavior System.IO.File.ReadAllText(System.IO.Path.Combine(dir, "fighter_buff.json"))); Assert.True(catalog.Behaviors.ContainsKey("slash")); + Assert.True(catalog.Behaviors.ContainsKey("quantao01")); + BehaviorSpec quantao = catalog.Behaviors["quantao01"]; + Assert.Contains(quantao.Timeline, e => + e.Kind == TimelineEntryKind.Animation + && e.Animation == "Assets/Game/Art/Actor/Controller/Class/140/140_skill01a_qt.FBX"); + Assert.Contains(quantao.Timeline, e => + e.Kind == TimelineEntryKind.Effect + && e.Prefab == "Assets/Game/Art/Effect/Prefab/skill/9110004_zhujue_quantao_skill01a.prefab"); } private static string FindRepoRoot()