mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
27 lines
709 B
C#
27 lines
709 B
C#
using SharedLibraryCore;
|
|
using System;
|
|
|
|
|
|
namespace ApplicationTests.Fixtures
|
|
{
|
|
static class EventGenerators
|
|
{
|
|
public static GameEvent GenerateEvent(GameEvent.EventType type, string data, Server owner)
|
|
{
|
|
switch (type)
|
|
{
|
|
case GameEvent.EventType.Command:
|
|
return new GameEvent
|
|
{
|
|
Origin = ClientGenerators.CreateDatabaseClient(),
|
|
Data = data,
|
|
Message = data,
|
|
Owner = owner
|
|
};
|
|
default:
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|
|
}
|