(client) chore:修改了角色的身体结构的定义方式,现在图片资源统一使用ImageDef加载,使用了更节省资源的初始化方式;fix:修复了定义加载数组时只能初始化数组而不能初始化列表的问题

This commit is contained in:
m0_75251201
2025-08-22 20:43:55 +08:00
parent 3e099137a1
commit 8916440e7e
28 changed files with 1411 additions and 954 deletions

View File

@ -1,5 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Define>
<!-- 贴图部分 -->
<ImageDef>
<defName>testPawn</defName>
<path>res:Character/Test/Body/idle_down</path>
<wCount>5</wCount>
<hCount>1</hCount>
</ImageDef>
<!-- 人物定义 -->
<CharacterDef>
<defName>testPawn</defName>
<label>测试小人</label>
@ -10,10 +19,15 @@
</attributes>
<affiliation>player</affiliation>
<drawingOrder>
<texturePath>res:Character\Test</texturePath>
<drawingOrder_down>
<node name="Body" type="Animation" FPS="0.5"/>
</drawingOrder_down>
<idle_down name="Body" FPS="2">
<animationTextures>
<li>testPawn_0</li>
<li>testPawn_1</li>
<li>testPawn_2</li>
<li>testPawn_3</li>
<li>testPawn_4</li>
</animationTextures>
</idle_down>
</drawingOrder>
<behaviorTree>
<Node className="JobGiver_RandomWander"/>