1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-24 22:20:35 -05:00

Additional zombie stast work

This commit is contained in:
RaidMax
2024-02-11 22:10:12 -06:00
parent 122b6dc79d
commit e1461582fa
45 changed files with 7663 additions and 292 deletions

View File

@ -0,0 +1,48 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Data.Models.Client;
namespace Data.Models.Zombie;
public enum EventLogType
{
Default = 0,
PerformanceCluster = 1,
DamageTaken = 2,
Downed = 3,
Died = 4,
Revived = 5,
WasRevived = 6,
PerkConsumed = 7,
PowerupGrabbed = 8,
RoundCompleted = 9,
JoinedMatch = 10,
LeftMatch = 11,
MatchStarted = 12,
MatchEnded = 13
}
public class ZombieEventLog : DatedRecord
{
[Key]
public long ZombieEventLogId { get; set; }
[NotMapped] public override long Id => ZombieEventLogId;
public EventLogType EventType { get; set; }
public int? SourceClientId { get; set; }
[ForeignKey(nameof(SourceClientId))]
public EFClient SourceClient { get; set; }
public int? AssociatedClientId { get; set; }
[ForeignKey(nameof(AssociatedClientId))]
public EFClient AssociatedClient { get; set; }
public double? NumericalValue { get; set; }
public string TextualValue { get; set; }
public int? MatchId { get; set; }
[ForeignKey(nameof(MatchId))]
public ZombieMatch Match { get; set; }
}