Traveller/scripts/camp/Camp.cs
Cold-Mint 95515ddab2
When the selected item slot A is selected, pressing the shortcut key of item slot A again will no longer invoke the press event of A.
当选中物品槽A时,再次按下物品槽A的快捷键,就不能再调用A的按下事件了。
2024-06-06 21:05:51 +08:00

46 lines
1.1 KiB
C#

using System.Collections.Generic;
namespace ColdMint.scripts.camp;
/// <summary>
/// <para>camp</para>
/// <para>阵营</para>
/// </summary>
public class Camp
{
private readonly List<string> _friendlyCampIdList;
public Camp(string id)
{
Id = id;
_friendlyCampIdList = new List<string>();
}
/// <summary>
/// <para>Get camp ID</para>
/// <para>获取阵营ID</para>
/// </summary>
public string Id { get; }
/// <summary>
/// <para>Get camp name</para>
/// <para>获取阵营名</para>
/// </summary>
public string? Name { get; set; }
/// <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();
}