mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
moved event API stuff around
finally fixed threading issue (which actually had to do with IW4x log outputs being out of sync (not an issue with my code). What a lot of headache over something that wasn't my fault.
This commit is contained in:
23
SharedLibraryCore/Events/GameEventArgs.cs
Normal file
23
SharedLibraryCore/Events/GameEventArgs.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SharedLibraryCore.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// represents the state of a game event for event processing
|
||||
/// </summary>
|
||||
public class GameEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
||||
{
|
||||
|
||||
public GameEventArgs(Exception error, bool cancelled, GameEvent userState) : base(error, cancelled, userState)
|
||||
{
|
||||
Event = userState;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Game event that occured on a server
|
||||
/// </summary>
|
||||
public GameEvent Event { get; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user