forked from cgvr/DeltaVR
deltavr multiplayer 2.0
This commit is contained in:
36
Assets/FishNet/CodeGenerating/Helpers/TransportHelper.cs
Normal file
36
Assets/FishNet/CodeGenerating/Helpers/TransportHelper.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using FishNet.Transporting;
|
||||
using MonoFN.Cecil;
|
||||
|
||||
namespace FishNet.CodeGenerating.Helping
|
||||
{
|
||||
internal class TransportHelper : CodegenBase
|
||||
{
|
||||
#region Reflection references.
|
||||
internal TypeReference Channel_TypeRef;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Resets cached values.
|
||||
/// </summary>
|
||||
private void ResetValues()
|
||||
{
|
||||
Channel_TypeRef = null;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Imports references needed by this helper.
|
||||
/// </summary>
|
||||
/// <param name="moduleDef"></param>
|
||||
/// <returns></returns>
|
||||
public override bool ImportReferences()
|
||||
{
|
||||
ResetValues();
|
||||
|
||||
Channel_TypeRef = base.ImportReference(typeof(Channel));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user