Moved a couple of folders and wrote some code

This commit is contained in:
Madhav Kapa
2023-06-01 11:21:49 -07:00
parent 0eea70ab4e
commit e8684391ca
1380 changed files with 2766 additions and 13987 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8d0473552b6e6834abb8a336d060797a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c314af08d630630449b7b7af740b9c7d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@

namespace FishNet.Broadcast
{
/// <summary>
/// Include this interface on types intended to be used with Broadcast.
/// </summary>
public interface IBroadcast { }
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 88ec864df25feed49bdcdab7f880531d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: