You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
763 B

using System.ComponentModel.DataAnnotations;
namespace ooya.ga_api;
public class Witch
{
/// <summary>
/// Идентификатор ведьмы
/// </summary>
[Required]
public string Guid { get; set; }
/// <summary>
/// Является ли настоящей
/// </summary>
[Required]
public bool FlagReal { get; set; }
/// <summary>
/// Позиция ведьмы
/// </summary>
[Required]
public int Position { get; set; }
/// <summary>
/// Конструктор
/// </summary>
/// <param name="position"></param>
public Witch(int position)
{
Guid = (System.Guid.NewGuid()).ToString("N");
Position = position;
FlagReal = false;
}
}