fishbait/UnityProject/Assets/FishNet/Runtime/Broadcast/Helping/BroadcastHelper.cs
NIMFER bf403a8f97 Ducktaped together a FishNet version of the Transport
Ducktaped together a FishNet version of the Transport, now I need to edit the LoadBalancer and Server so it connects and actually trades information
2022-08-14 03:55:25 +02:00

19 lines
No EOL
464 B
C#

using FishNet.Object.Helping;
namespace FishNet.Broadcast.Helping
{
internal static class BroadcastHelper
{
/// <summary>
/// Gets the key for a broadcast type.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="broadcastType"></param>
/// <returns></returns>
public static ushort GetKey<T>()
{
return typeof(T).FullName.GetStableHash16();
}
}
}