This commit is contained in:
vis2k 2021-03-08 22:11:22 +08:00
parent 3fa8eb727c
commit 6045736266

View File

@ -16,9 +16,7 @@ namespace Mirror
// (probably even shorter) // (probably even shorter)
public static class MessagePacking public static class MessagePacking
{ {
/// <summary> // message header size
/// this is the minimum size of a message that mirror will accept
/// </summary>
internal const int HeaderSize = sizeof(ushort); internal const int HeaderSize = sizeof(ushort);
public static int GetId<T>() where T : struct, NetworkMessage public static int GetId<T>() where T : struct, NetworkMessage