(client) feat:添加行为树和工作类

This commit is contained in:
m0_75251201
2025-07-20 20:41:37 +08:00
parent 9dcc67d710
commit a48ccca5f4
12 changed files with 350 additions and 44 deletions

View File

@ -11,5 +11,18 @@ namespace Data
public int attackSpeed = 2;
public int attackRange = 3;
public int attackTargetCount = 1;
public AttributesDef Clone()
{
return new AttributesDef
{
health = this.health,
moveSpeed = this.moveSpeed,
attack = this.attack,
defense = this.defense,
attackSpeed = this.attackSpeed,
attackRange = this.attackRange,
attackTargetCount = this.attackTargetCount
};
}
}
}

View File

@ -7,6 +7,7 @@ namespace Data
{
public class PawnDef : Define
{
public AttributesDef attributes;
public string aiController;
public string texturePath = null;
public DrawingOrderDef
@ -15,7 +16,7 @@ namespace Data
drawingOrder_left,
drawingOrder_right;
public string[] behaviorTree;
public BehaviorTreeDef behaviorTree;
public DrawingOrderDef GetDrawingOrder(Orientation orientation)