2024-04-28 13:55:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.camp;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>camp</para>
|
|
|
|
|
/// <para>阵营</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Camp
|
|
|
|
|
{
|
2024-05-08 10:22:04 +00:00
|
|
|
|
private readonly List<string> _friendlyCampIdList;
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
public Camp(string id)
|
|
|
|
|
{
|
2024-06-06 13:05:51 +00:00
|
|
|
|
Id = id;
|
2024-04-28 13:55:19 +00:00
|
|
|
|
_friendlyCampIdList = new List<string>();
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-19 15:18:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Add friendly camp ID</para>
|
|
|
|
|
/// <para>添加友善的阵营ID</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="friendlyCampId"></param>
|
|
|
|
|
public void AddFriendlyCampId(string friendlyCampId)
|
|
|
|
|
{
|
|
|
|
|
_friendlyCampIdList.Add(friendlyCampId);
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-28 13:55:19 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Get camp ID</para>
|
|
|
|
|
/// <para>获取阵营ID</para>
|
|
|
|
|
/// </summary>
|
2024-06-06 13:05:51 +00:00
|
|
|
|
public string Id { get; }
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Get camp name</para>
|
|
|
|
|
/// <para>获取阵营名</para>
|
|
|
|
|
/// </summary>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
public string? Name { get; set; }
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Friend Injury</para>
|
|
|
|
|
/// <para>友伤</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
///<para>Whether to damage targets on the same side</para>
|
|
|
|
|
///<para>是否可伤害同一阵营的目标</para>
|
|
|
|
|
/// </remarks>
|
|
|
|
|
public bool FriendInjury { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Gets the camp ID that is friendly to this camp</para>
|
|
|
|
|
/// <para>获取与此阵营友好的阵营ID</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string[] FriendlyCampIdArray => _friendlyCampIdList.ToArray();
|
|
|
|
|
}
|