Add StickGame Assets
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user