fix: Fixes serialization threading, moves world save to end of loop, and eliminates Parallel.ForEach. (#1530)
This commit is contained in:
parent
e18115dd94
commit
1f0acddc46
12 changed files with 228 additions and 58 deletions
|
|
@ -19,7 +19,7 @@ using System.IO;
|
|||
|
||||
namespace Server;
|
||||
|
||||
public interface ISerializable
|
||||
public interface ISerializable : IGenericSerializable
|
||||
{
|
||||
// Should be serialized/deserialized with the index so it can be referenced by IGenericReader
|
||||
DateTime Created { get; set; }
|
||||
|
|
@ -48,7 +48,7 @@ public interface ISerializable
|
|||
}
|
||||
}
|
||||
|
||||
public void Serialize(ConcurrentQueue<Type> types)
|
||||
void IGenericSerializable.Serialize(ConcurrentQueue<Type> types)
|
||||
{
|
||||
SaveBuffer ??= new BufferWriter(true, types);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue