2018-04-26 01:13:04 -05:00
|
|
|
|
using SharedLibraryCore;
|
2018-08-30 20:53:00 -05:00
|
|
|
|
using SharedLibraryCore.Events;
|
2018-04-26 01:13:04 -05:00
|
|
|
|
using SharedLibraryCore.Interfaces;
|
|
|
|
|
using System.Collections.Generic;
|
2018-08-30 20:53:00 -05:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading;
|
2018-04-26 01:13:04 -05:00
|
|
|
|
|
|
|
|
|
namespace IW4MAdmin.Application
|
|
|
|
|
{
|
|
|
|
|
class GameEventHandler : IEventHandler
|
|
|
|
|
{
|
2019-05-31 10:17:01 -05:00
|
|
|
|
readonly ApplicationManager Manager;
|
2018-04-26 01:13:04 -05:00
|
|
|
|
public GameEventHandler(IManager mgr)
|
|
|
|
|
{
|
2019-05-31 10:17:01 -05:00
|
|
|
|
Manager = (ApplicationManager)mgr;
|
2018-04-26 01:13:04 -05:00
|
|
|
|
}
|
|
|
|
|
|
2018-09-04 12:40:29 -05:00
|
|
|
|
public void AddEvent(GameEvent gameEvent)
|
2018-04-26 01:13:04 -05:00
|
|
|
|
{
|
2019-05-31 10:17:01 -05:00
|
|
|
|
Manager.OnServerEvent?.Invoke(gameEvent.Owner, new GameEventArgs(null, false, gameEvent));
|
2018-04-26 01:13:04 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|