设置scriptable存储角色信息,调整编队系统部分代码逻辑

This commit is contained in:
2025-06-13 01:11:41 +08:00
parent 5c20a1e935
commit 5728adc919
42 changed files with 553 additions and 1156 deletions
+35
View File
@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 适用于编队系统数据层,存储单个队伍的信息
/// </summary>
public class TeamSetting
{
public TeamSetting(List<CharacterView> teamList, int leaderId)
{
this.teamIdList = teamIdList;
LeaderId = leaderId;
}
public List<CharacterView> teamIdList = new List<CharacterView>();
/// <summary>
/// 队长
/// </summary>
public int LeaderId{get; set;}
}
public class CharacterView
{
public CharacterView(int characterId, string currentBoundaryLevel)
{
this.characterId = characterId;
this.currentBoundaryLevel = currentBoundaryLevel;
}
public int characterId{get; set;}
public string currentBoundaryLevel{get; set;}
}