163523d586
don't force disconnect player if someone is "in" their spot increase gamelogserver max time before purge
24 lines
597 B
C#
24 lines
597 B
C#
using SharedLibraryCore;
|
|
using SharedLibraryCore.Events;
|
|
using SharedLibraryCore.Interfaces;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
|
|
namespace IW4MAdmin.Application
|
|
{
|
|
class GameEventHandler : IEventHandler
|
|
{
|
|
readonly ApplicationManager Manager;
|
|
public GameEventHandler(IManager mgr)
|
|
{
|
|
Manager = (ApplicationManager)mgr;
|
|
}
|
|
|
|
public void AddEvent(GameEvent gameEvent)
|
|
{
|
|
Manager.OnServerEvent?.Invoke(gameEvent.Owner, new GameEventArgs(null, false, gameEvent));
|
|
}
|
|
}
|
|
}
|