IW4M-Admin/SharedLibraryCore/Event.cs
RaidMax 2fc2109a2e started work on T6M parsing rest api
fixed bug in login program preventing regular users from executing commands
make log reading async and changed encoding to UTF7
2018-04-15 20:27:43 -05:00

65 lines
1.3 KiB
C#

using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using SharedLibraryCore.Objects;
namespace SharedLibraryCore
{
public class GameEvent
{
public enum EventType
{
//FROM SERVER
Start,
Stop,
Connect,
Disconnect,
Say,
MapChange,
MapEnd,
//FROM ADMIN
Broadcast,
Tell,
Kick,
Ban,
Remote,
Unknown,
//FROM PLAYER
Report,
Flag,
Command,
// FROM GAME
Script,
Kill,
Damage,
Death,
}
public GameEvent(EventType t, string d, Player O, Player T, Server S)
{
Type = t;
Data = d?.Trim();
Origin = O;
Target = T;
Owner = S;
}
public GameEvent() { }
public EventType Type;
public string Data; // Data is usually the message sent by player
public string Message;
public Player Origin;
public Player Target;
public Server Owner;
public Boolean Remote = false;
public object Extra { get; set; }
}
}