2018-08-30 21:53:00 -04:00
|
|
|
|
using System;
|
2022-01-26 11:32:16 -05:00
|
|
|
|
using System.ComponentModel;
|
2018-08-30 21:53:00 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Events
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// represents the state of a game event for event processing
|
2018-08-30 21:53:00 -04:00
|
|
|
|
/// </summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
public class GameEventArgs : AsyncCompletedEventArgs
|
2018-08-30 21:53:00 -04:00
|
|
|
|
{
|
|
|
|
|
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
|
2018-08-30 21:53:00 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public GameEvent Event { get; }
|
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|