Files
Dec2017-Script-Dump/UnityEngine.Networking/ULocalConnectionToClient.cs
T
2026-06-04 11:42:34 +02:00

80 lines
2.2 KiB
C#

using System;
namespace UnityEngine.Networking
{
// Token: 0x02000014 RID: 20
internal class ULocalConnectionToClient : NetworkConnection
{
// Token: 0x0600007D RID: 125 RVA: 0x00007B9A File Offset: 0x00005D9A
public ULocalConnectionToClient(LocalClient localClient)
{
this.address = "localClient";
this.m_LocalClient = localClient;
}
// Token: 0x17000013 RID: 19
// (get) Token: 0x0600007E RID: 126 RVA: 0x00007BB8 File Offset: 0x00005DB8
public LocalClient localClient
{
get
{
return this.m_LocalClient;
}
}
// Token: 0x0600007F RID: 127 RVA: 0x00007BD4 File Offset: 0x00005DD4
public override bool Send(short msgType, MessageBase msg)
{
this.m_LocalClient.InvokeHandlerOnClient(msgType, msg, 0);
return true;
}
// Token: 0x06000080 RID: 128 RVA: 0x00007BF8 File Offset: 0x00005DF8
public override bool SendUnreliable(short msgType, MessageBase msg)
{
this.m_LocalClient.InvokeHandlerOnClient(msgType, msg, 1);
return true;
}
// Token: 0x06000081 RID: 129 RVA: 0x00007C1C File Offset: 0x00005E1C
public override bool SendByChannel(short msgType, MessageBase msg, int channelId)
{
this.m_LocalClient.InvokeHandlerOnClient(msgType, msg, channelId);
return true;
}
// Token: 0x06000082 RID: 130 RVA: 0x00007C40 File Offset: 0x00005E40
public override bool SendBytes(byte[] bytes, int numBytes, int channelId)
{
this.m_LocalClient.InvokeBytesOnClient(bytes, channelId);
return true;
}
// Token: 0x06000083 RID: 131 RVA: 0x00007C64 File Offset: 0x00005E64
public override bool SendWriter(NetworkWriter writer, int channelId)
{
this.m_LocalClient.InvokeBytesOnClient(writer.AsArray(), channelId);
return true;
}
// Token: 0x06000084 RID: 132 RVA: 0x00007C8C File Offset: 0x00005E8C
public override void GetStatsOut(out int numMsgs, out int numBufferedMsgs, out int numBytes, out int lastBufferedPerSecond)
{
numMsgs = 0;
numBufferedMsgs = 0;
numBytes = 0;
lastBufferedPerSecond = 0;
}
// Token: 0x06000085 RID: 133 RVA: 0x00007C9C File Offset: 0x00005E9C
public override void GetStatsIn(out int numMsgs, out int numBytes)
{
numMsgs = 0;
numBytes = 0;
}
// Token: 0x0400005A RID: 90
private LocalClient m_LocalClient;
}
}