(client) chore:修改了角色的身体结构的定义方式,现在图片资源统一使用ImageDef加载,使用了更节省资源的初始化方式;fix:修复了定义加载数组时只能初始化数组而不能初始化列表的问题
This commit is contained in:
@ -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"/>
|
||||
|
Reference in New Issue
Block a user