Files
2026-06-04 11:42:34 +02:00

58 lines
1.4 KiB
C#

using System;
namespace UnityEngine.Networking
{
// Token: 0x02000065 RID: 101
public class PlayerController
{
// Token: 0x0600051E RID: 1310 RVA: 0x0001DD2E File Offset: 0x0001BF2E
public PlayerController()
{
}
// Token: 0x0600051F RID: 1311 RVA: 0x0001DD3E File Offset: 0x0001BF3E
internal PlayerController(GameObject go, short playerControllerId)
{
this.gameObject = go;
this.unetView = go.GetComponent<NetworkIdentity>();
this.playerControllerId = playerControllerId;
}
// Token: 0x170000DB RID: 219
// (get) Token: 0x06000520 RID: 1312 RVA: 0x0001DD68 File Offset: 0x0001BF68
public bool IsValid
{
get
{
return this.playerControllerId != -1;
}
}
// Token: 0x06000521 RID: 1313 RVA: 0x0001DD8C File Offset: 0x0001BF8C
public override string ToString()
{
return string.Format("ID={0} NetworkIdentity NetID={1} Player={2}", new object[]
{
this.playerControllerId,
(!(this.unetView != null)) ? "null" : this.unetView.netId.ToString(),
(!(this.gameObject != null)) ? "null" : this.gameObject.name
});
}
// Token: 0x0400022F RID: 559
internal const short kMaxLocalPlayers = 8;
// Token: 0x04000230 RID: 560
public short playerControllerId = -1;
// Token: 0x04000231 RID: 561
public NetworkIdentity unetView;
// Token: 0x04000232 RID: 562
public GameObject gameObject;
// Token: 0x04000233 RID: 563
public const int MaxPlayersPerClient = 32;
}
}