using System.Collections.Generic;
namespace ColdMint.scripts.camp;
///
/// camp
/// 阵营
///
public class Camp
{
private readonly List _friendlyCampIdList;
public Camp(string id)
{
Id = id;
_friendlyCampIdList = new List();
}
///
/// Add friendly camp ID
/// 添加友善的阵营ID
///
///
public void AddFriendlyCampId(string friendlyCampId)
{
_friendlyCampIdList.Add(friendlyCampId);
}
///
/// Get camp ID
/// 获取阵营ID
///
public string Id { get; }
///
/// Get camp name
/// 获取阵营名
///
public string? Name { get; set; }
///
/// Friend Injury
/// 友伤
///
///
///Whether to damage targets on the same side
///是否可伤害同一阵营的目标
///
public bool FriendInjury { get; set; }
///
/// Gets the camp ID that is friendly to this camp
/// 获取与此阵营友好的阵营ID
///
public string[] FriendlyCampIdArray => _friendlyCampIdList.ToArray();
}