1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-12 08:08:06 -05:00

zombie stats code

This commit is contained in:
RaidMax
2024-07-02 16:09:30 -05:00
parent 962abcf833
commit 79bd6ca8e1
44 changed files with 2354 additions and 4264 deletions

View File

@ -42,6 +42,11 @@ namespace Data.Models.Client.Stats
[ForeignKey(nameof(WeaponAttachmentComboId))]
public virtual EFWeaponAttachmentCombo WeaponAttachmentCombo { get; set; }
public int? PerformanceBucketId { get; set; }
[ForeignKey(nameof(PerformanceBucketId))]
public virtual EFPerformanceBucket PerformanceBucket { get; set; }
/// <summary>
/// how many hits the player got

View File

@ -25,6 +25,9 @@ namespace Data.Models.Client.Stats
public int? Ranking { get; set; }
public double? ZScore { get; set; }
public double? PerformanceMetric { get; set; }
public string PerformanceBucket { get; set; }
public int? PerformanceBucketId { get; set; }
[ForeignKey(nameof(PerformanceBucketId))]
public EFPerformanceBucket PerformanceBucket { get; set; }
}
}

View File

@ -0,0 +1,12 @@
using System.ComponentModel.DataAnnotations;
namespace Data.Models.Client.Stats;
public class EFClientStatTag : DatedRecord
{
[Key]
public int ZombieStatTagId { get; set; }
[MaxLength(128)]
public string TagName { get; set; }
}

View File

@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Data.Models.Client.Stats;
public class EFClientStatTagValue : DatedRecord
{
[Key]
public long ZombieClientStatTagValueId { get; set; }
public int? StatValue { get; set; }
[Required]
public int StatTagId { get; set; }
[ForeignKey(nameof(StatTagId))]
public EFClientStatTag StatTag { get; set; }
public int ClientId { get; set; }
[ForeignKey(nameof(ClientId))]
public EFClient Client { get; set; }
}

View File

@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace Data.Models.Client.Stats;
public class EFPerformanceBucket
{
[Key]
public int PerformanceBucketId { get; set; }
[MaxLength(256)]
public string BucketCode { get; set; }
[MaxLength(256)]
public string BucketName { get; set; }
}