2018-04-08 17:50:58 -04:00
|
|
|
|
using SharedLibraryCore.Database.Models;
|
2018-03-06 02:22:19 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2018-04-09 15:17:10 -04:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2018-03-06 02:22:19 -05:00
|
|
|
|
|
2018-04-08 17:50:58 -04:00
|
|
|
|
namespace IW4MAdmin.Plugins.Stats.Models
|
2018-03-06 02:22:19 -05:00
|
|
|
|
{
|
|
|
|
|
public class EFHitLocationCount : SharedEntity
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int HitLocationCountId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public IW4Info.HitLocation Location { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int HitCount { get; set; }
|
2018-03-27 20:27:01 -04:00
|
|
|
|
[Required]
|
|
|
|
|
public float HitOffsetAverage { get; set; }
|
2018-05-03 01:25:49 -04:00
|
|
|
|
[Required]
|
|
|
|
|
public float MaxAngleDistance { get; set; }
|
|
|
|
|
[Required]
|
2018-04-09 15:17:10 -04:00
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[ForeignKey("ClientId"), Column(Order = 0 )]
|
|
|
|
|
public EFClient Client { get; set; }
|
|
|
|
|
public int ServerId { get; set; }
|
|
|
|
|
[ForeignKey("ServerId"), Column(Order = 1)]
|
|
|
|
|
public EFServer Server { get; set; }
|
|
|
|
|
|
2018-03-06 02:22:19 -05:00
|
|
|
|
}
|
|
|
|
|
}
|