mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Don't include assembly strings into the string dict.
This is a pretty awful idea and it wastes a lot of bandwidth.
This commit is contained in:
@@ -89,32 +89,6 @@ namespace Robust.Shared.Serialization
|
||||
{
|
||||
_mappedStringSerializer.LockMappedStrings = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
var defaultAssemblies = AssemblyLoadContext.Default.Assemblies;
|
||||
var gameAssemblies = _reflectionManager.Assemblies;
|
||||
var robustShared = defaultAssemblies
|
||||
.First(a => a.GetName().Name == "Robust.Shared");
|
||||
_mappedStringSerializer.AddStrings(robustShared);
|
||||
|
||||
// TODO: Need to add a GetSharedAssemblies method to the reflection manager
|
||||
|
||||
var contentShared = gameAssemblies
|
||||
.FirstOrDefault(a => a.GetName().Name == "Content.Shared");
|
||||
if (contentShared != null)
|
||||
{
|
||||
_mappedStringSerializer.AddStrings(contentShared);
|
||||
}
|
||||
|
||||
// TODO: Need to add a GetServerAssemblies method to the reflection manager
|
||||
|
||||
var contentServer = gameAssemblies
|
||||
.FirstOrDefault(a => a.GetName().Name == "Content.Server");
|
||||
if (contentServer != null)
|
||||
{
|
||||
_mappedStringSerializer.AddStrings(contentServer);
|
||||
}
|
||||
}
|
||||
|
||||
_mappedStringSerializer.NetworkInitialize(_netManager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user