Assets/Deps/emotitron/Network/NST/NetworkSyncTransform.cs
/// <summary>
/// This static method assumes you have ONLY ONE NST on this client. If you have more than one use the non-static AddCustomEventToQueue method to specify which NST you mean.
/// This overlad will accept just about anything you put into a struct, so be careful. Limit your datatypes to JUST the smallest compressed primatives and don't include methods 
/// or properties in your custom struct. Otherwise this could bloat your net traffic fast.
/// This will trigger the OnCustomMsgSndEvent on the sending machine and OnCustomMsgRcvEvent on receiving machines.
/// </summary>
/// <typeparam name="T">A custom struct of your own making.</typeparam>
This static method assumes you have ONLY ONE NST on this client. If you have more than one use the non-static AddCustomEventToQueue method to specify which NST you mean.
This overlad will accept just about anything you put into a struct, so be careful. Limit your datatypes to JUST the smallest compressed primatives and don't include methods
or properties in your custom struct. Otherwise this could bloat your net traffic fast.
This will trigger the OnCustomMsgSndEvent on the sending machine and OnCustomMsgRcvEvent on receiving machines.
This static method assumes you have ONLY ONE NST on this client . If you have more than one use the non - static AddCustomEventToQueue method to specify which NST you mean . This overlad will accept just about anything you put into a struct so be careful . Limit your datatypes to JUST the smallest compressed primatives and don ' t include methods or properties in your custom struct . Otherwise this could bloat your net traffic fast . This will trigger the OnCustomMsgSndEvent on the sending machine and OnCustomMsgRcvEvent on receiving machines .
public static void SendCustomEventSimple<T>(T userData) where T : struct
		{
			if (lclNST != null)
				lclNST.customEventQueue.Enqueue(userData.SerializeToByteArray());
		}
public static void SendCustomEventSimple < T > ( T userData ) where T : struct { if ( lclNST != null ) lclNST . customEventQueue . Enqueue ( userData . SerializeToByteArray ( ) ) ; }
This static method assumes you have ONLY ONE NST on this client.
This static method assumes you have ONLY ONE NST on this client .
userData
T
typeparam
A custom struct of your own making.
A custom struct of your own making .