您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
723 B

namespace Unity.Netcode
{
/// <summary>
/// Interface for implementing custom serializable types.
/// </summary>
public interface INetworkSerializable
{
/// <summary>
/// Provides bi-directional serialization to read and write the desired data to serialize this type.
/// </summary>
/// <param name="serializer">The serializer to use to read and write the data.</param>
/// <typeparam name="T">
/// Either BufferSerializerReader or BufferSerializerWriter, depending whether the serializer
/// is in read mode or write mode.
/// </typeparam>
void NetworkSerialize<T>(BufferSerializer<T> serializer) where T : IReaderWriter;
}
}