This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,78 @@
using System;
using System.Runtime.CompilerServices;
using UnityEngine.Scripting;
namespace UnityEngine.Networking
{
// Token: 0x020002D2 RID: 722
internal sealed class HostTopologyInternal : IDisposable
{
// Token: 0x06002FC5 RID: 12229 RVA: 0x00045E28 File Offset: 0x00044028
public HostTopologyInternal(HostTopology topology)
{
ConnectionConfigInternal connectionConfigInternal = new ConnectionConfigInternal(topology.DefaultConfig);
this.InitWrapper(connectionConfigInternal, topology.MaxDefaultConnections);
for (int i = 1; i <= topology.SpecialConnectionConfigsCount; i++)
{
ConnectionConfig specialConnectionConfig = topology.GetSpecialConnectionConfig(i);
ConnectionConfigInternal connectionConfigInternal2 = new ConnectionConfigInternal(specialConnectionConfig);
this.AddSpecialConnectionConfig(connectionConfigInternal2);
}
this.InitOtherParameters(topology);
}
// Token: 0x06002FC6 RID: 12230
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void InitWrapper(ConnectionConfigInternal config, int maxDefaultConnections);
// Token: 0x06002FC7 RID: 12231 RVA: 0x00045E8C File Offset: 0x0004408C
private int AddSpecialConnectionConfig(ConnectionConfigInternal config)
{
return this.AddSpecialConnectionConfigWrapper(config);
}
// Token: 0x06002FC8 RID: 12232
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern int AddSpecialConnectionConfigWrapper(ConnectionConfigInternal config);
// Token: 0x06002FC9 RID: 12233 RVA: 0x00045EA8 File Offset: 0x000440A8
private void InitOtherParameters(HostTopology topology)
{
this.InitReceivedPoolSize(topology.ReceivedMessagePoolSize);
this.InitSentMessagePoolSize(topology.SentMessagePoolSize);
this.InitMessagePoolSizeGrowthFactor(topology.MessagePoolSizeGrowthFactor);
}
// Token: 0x06002FCA RID: 12234
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void InitReceivedPoolSize(ushort pool);
// Token: 0x06002FCB RID: 12235
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void InitSentMessagePoolSize(ushort pool);
// Token: 0x06002FCC RID: 12236
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void InitMessagePoolSizeGrowthFactor(float factor);
// Token: 0x06002FCD RID: 12237
[ThreadAndSerializationSafe]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void Dispose();
// Token: 0x06002FCE RID: 12238 RVA: 0x00045ED0 File Offset: 0x000440D0
~HostTopologyInternal()
{
this.Dispose();
}
// Token: 0x04000979 RID: 2425
internal IntPtr m_Ptr;
}
}