2021-11-22 19:08:27 +01:00
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
using Content.Shared.FixedPoint;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Administration.Logs.Converters;
|
|
|
|
|
|
|
|
|
|
|
|
[AdminLogConverter]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class FixedPoint2Converter : AdminLogConverter<FixedPoint2>
|
2021-11-22 19:08:27 +01:00
|
|
|
|
{
|
|
|
|
|
|
public override void Write(Utf8JsonWriter writer, FixedPoint2 value, JsonSerializerOptions options)
|
|
|
|
|
|
{
|
|
|
|
|
|
writer.WriteNumberValue(value.Int());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|