Add StickGame Assets

This commit is contained in:
Dzejkobik007
2024-03-24 22:21:16 +01:00
parent 5a5812c0c7
commit 6c8b523d1f
6643 changed files with 596260 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using FishNet.Connection;
using MonoFN.Cecil;
using System;
using System.Reflection;
namespace FishNet.CodeGenerating.Helping
{
internal class NetworkConnectionImports : CodegenBase
{
#region Reflection references.
//Names.
internal string FullName;
public MethodReference IsLocalClient_Get_MethodRef;
#endregion
#region Const.
internal const uint MAX_RPC_ALLOWANCE = ushort.MaxValue;
internal const string AWAKE_METHOD_NAME = "Awake";
internal const string DISABLE_LOGGING_TEXT = "This message may be disabled by setting the Logging field in your attribute to LoggingType.Off";
#endregion
public override bool ImportReferences()
{
Type type = typeof(NetworkConnection);
base.ImportReference(type);
FullName = type.FullName;
foreach (PropertyInfo pi in type.GetProperties())
{
if (pi.Name == nameof(NetworkConnection.IsLocalClient))
{
IsLocalClient_Get_MethodRef = base.ImportReference(pi.GetMethod);
break;
}
}
return true;
}
}
}