The End of Entity (Komm, Süsser Todd: Part 1.0, Content PR) (#5624)
This commit is contained in:
committed by
GitHub
parent
0f80a37a26
commit
bd18574412
@@ -14,7 +14,7 @@ using Robust.Shared.Timing;
|
||||
namespace Content.IntegrationTests.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
[TestOf(typeof(Entity))]
|
||||
[TestOf(typeof(IEntity))]
|
||||
public class EntityTest : ContentIntegrationTest
|
||||
{
|
||||
[Test]
|
||||
|
||||
@@ -6,11 +6,11 @@ using Robust.Shared.IoC;
|
||||
namespace Content.Server.Administration.Logs.Converters;
|
||||
|
||||
[AdminLogConverter]
|
||||
public class EntityConverter : AdminLogConverter<Entity>
|
||||
public class EntityConverter : AdminLogConverter<IEntity>
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entities = default!;
|
||||
|
||||
public override void Write(Utf8JsonWriter writer, Entity value, JsonSerializerOptions options)
|
||||
public override void Write(Utf8JsonWriter writer, IEntity value, JsonSerializerOptions options)
|
||||
{
|
||||
EntityUidConverter.Write(writer, value.Uid, options, _entities);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user