267e0b8cbe
reenable tekno support address vagrant thread issue refactor game log reader creation to follow better practices fix bot issues/address how guids are generated for bots/none provided
28 lines
1005 B
C#
28 lines
1005 B
C#
using Newtonsoft.Json;
|
|
using SharedLibraryCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace IW4MAdmin.Application.Misc
|
|
{
|
|
public class EventLog : Dictionary<long, IList<GameEvent>>
|
|
{
|
|
private static JsonSerializerSettings serializationSettings;
|
|
|
|
public static JsonSerializerSettings BuildVcrSerializationSettings()
|
|
{
|
|
if (serializationSettings == null)
|
|
{
|
|
serializationSettings = new JsonSerializerSettings() { Formatting = Formatting.Indented, ReferenceLoopHandling = ReferenceLoopHandling.Ignore };
|
|
serializationSettings.Converters.Add(new IPAddressConverter());
|
|
serializationSettings.Converters.Add(new IPEndPointConverter());
|
|
serializationSettings.Converters.Add(new GameEventConverter());
|
|
serializationSettings.Converters.Add(new ClientEntityConverter());
|
|
}
|
|
|
|
return serializationSettings;
|
|
}
|
|
}
|
|
}
|