Moved a couple of folders and wrote some code
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c314af08d630630449b7b7af740b9c7d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user