IW4M-Admin/SharedLibraryCore/Events/GameEventArgs.cs

21 lines
569 B
C#
Raw Permalink Normal View History

using System;
2022-01-26 11:32:16 -05:00
using System.ComponentModel;
namespace SharedLibraryCore.Events
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// represents the state of a game event for event processing
/// </summary>
2022-01-26 11:32:16 -05:00
public class GameEventArgs : AsyncCompletedEventArgs
{
public GameEventArgs(Exception error, bool cancelled, GameEvent userState) : base(error, cancelled, userState)
{
Event = userState;
}
/// <summary>
2022-01-26 11:32:16 -05:00
/// Game event that occured on a server
/// </summary>
public GameEvent Event { get; }
}
2022-01-26 11:32:16 -05:00
}