This repository has been archived on 2025-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
Files
skolavdf/phr/StickGame/Assets/FishNet/Runtime/Broadcast/Helping/BroadcastHelper.cs
2024-03-24 22:21:16 +01:00

19 lines
478 B
C#

using GameKit.Utilities;
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.GetStableHashU16();
}
}
}