mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Expose more net serializer stuff to content (#3476)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
@@ -12,7 +12,7 @@ using YamlDotNet.RepresentationModel;
|
||||
|
||||
namespace Robust.UnitTesting
|
||||
{
|
||||
public sealed class IntegrationMappedStringSerializer : IRobustMappedStringSerializer
|
||||
internal sealed class IntegrationMappedStringSerializer : IRobustMappedStringSerializer
|
||||
{
|
||||
[Dependency] private readonly INetManager _net = default!;
|
||||
|
||||
@@ -76,6 +76,16 @@ namespace Robust.UnitTesting
|
||||
ClientHandshakeComplete?.Invoke();
|
||||
}
|
||||
|
||||
public (byte[] mapHash, byte[] package) GeneratePackage()
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public void SetPackage(byte[] hash, byte[] package)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
private sealed class TypeSerializerImpl : IStaticTypeSerializer
|
||||
{
|
||||
public bool Handles(Type type)
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.IO;
|
||||
using NUnit.Framework;
|
||||
using Robust.Server.Configuration;
|
||||
using Robust.Server.Reflection;
|
||||
using Robust.Server.Serialization;
|
||||
using Robust.Shared.Configuration;
|
||||
using Robust.Shared.ContentPack;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -34,7 +35,7 @@ namespace Robust.UnitTesting.Shared.GameObjects
|
||||
container.Register<IConfigurationManagerInternal, ServerNetConfigurationManager>();
|
||||
container.Register<INetManager, NetManager>();
|
||||
container.Register<IReflectionManager, ServerReflectionManager>();
|
||||
container.Register<IRobustSerializer, RobustSerializer>();
|
||||
container.Register<IRobustSerializer, ServerRobustSerializer>();
|
||||
container.Register<IRobustMappedStringSerializer, RobustMappedStringSerializer>();
|
||||
container.Register<IAuthManager, AuthManager>();
|
||||
container.Register<IGameTiming, GameTiming>();
|
||||
|
||||
Reference in New Issue
Block a user