1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

define new event types

This commit is contained in:
RaidMax
2023-02-11 21:03:35 -06:00
parent 36cca2f93b
commit 2b6720d4e2
36 changed files with 320 additions and 0 deletions

View File

@ -0,0 +1,20 @@
using System;
using SharedLibraryCore.Database.Models;
namespace SharedLibraryCore.Events.Game;
public class ClientJoinTeamEvent : ClientGameEvent
{
public string TeamName { get; init; }
public EFClient.TeamType? Team {
get
{
if (Enum.TryParse(typeof(EFClient.TeamType), TeamName, out var parsedTeam) && parsedTeam is not null)
{
return (EFClient.TeamType)parsedTeam;
}
return null;
}
}
}