alap
This commit is contained in:
13
Assets/Mirror/Core/NetworkWriterPooled.cs
Normal file
13
Assets/Mirror/Core/NetworkWriterPooled.cs
Normal file
@ -0,0 +1,13 @@
|
||||
// "NetworkWriterPooled" instead of "PooledNetworkWriter" to group files, for
|
||||
// easier IDE workflow and more elegant code.
|
||||
using System;
|
||||
|
||||
namespace Mirror
|
||||
{
|
||||
/// <summary>Pooled NetworkWriter, automatically returned to pool when using 'using'</summary>
|
||||
// TODO make sealed again after removing obsolete NetworkWriterPooled!
|
||||
public class NetworkWriterPooled : NetworkWriter, IDisposable
|
||||
{
|
||||
public void Dispose() => NetworkWriterPool.Return(this);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user