This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
station_obscurum_unity/Assets/FishNet/Runtime/Broadcast/Helping/BroadcastHelper.cs

19 lines
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();
}
}
}