24 lines
693 B
C#
24 lines
693 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BHServer.Models
|
|
{
|
|
public class AssaultTroop
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
public int ATId { get; set; }
|
|
[Required]
|
|
public string Name { get; set; }
|
|
[Required]
|
|
public int Faction { get; set; } // 0 - Neutral, 1 - Allies, 2 - Axis
|
|
[Required]
|
|
public int Type { get; set; } // 1 - infantry, 4 - Armor
|
|
[Required]
|
|
public int Province { get; set; } // -1 - not deployed, provinces id
|
|
[Required]
|
|
public string Orders { get; set; } // Json String
|
|
[Required]
|
|
public int Owner { get; set; } // owner id
|
|
}
|
|
}
|