scripts
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.Networking.Types;
|
||||
|
||||
namespace UnityEngine.Networking
|
||||
{
|
||||
// Token: 0x020002BD RID: 701
|
||||
public class Utility
|
||||
{
|
||||
// Token: 0x06002E79 RID: 11897 RVA: 0x00043130 File Offset: 0x00041330
|
||||
private Utility()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000A9D RID: 2717
|
||||
// (get) Token: 0x06002E7A RID: 11898 RVA: 0x0004313C File Offset: 0x0004133C
|
||||
// (set) Token: 0x06002E7B RID: 11899 RVA: 0x00043154 File Offset: 0x00041354
|
||||
[Obsolete("This property is unused and should not be referenced in code.", true)]
|
||||
public static bool useRandomSourceID
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002E7C RID: 11900 RVA: 0x00043158 File Offset: 0x00041358
|
||||
public static SourceID GetSourceID()
|
||||
{
|
||||
return (SourceID)((long)SystemInfo.deviceUniqueIdentifier.GetHashCode());
|
||||
}
|
||||
|
||||
// Token: 0x06002E7D RID: 11901 RVA: 0x00043178 File Offset: 0x00041378
|
||||
[Obsolete("This function is unused and should not be referenced in code. Please sign in and setup your project in the editor instead.", true)]
|
||||
public static void SetAppID(AppID newAppID)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002E7E RID: 11902 RVA: 0x0004317C File Offset: 0x0004137C
|
||||
[Obsolete("This function is unused and should not be referenced in code. Please sign in and setup your project in the editor instead.", true)]
|
||||
public static AppID GetAppID()
|
||||
{
|
||||
return AppID.Invalid;
|
||||
}
|
||||
|
||||
// Token: 0x06002E7F RID: 11903 RVA: 0x00043194 File Offset: 0x00041394
|
||||
public static void SetAccessTokenForNetwork(NetworkID netId, NetworkAccessToken accessToken)
|
||||
{
|
||||
if (Utility.s_dictTokens.ContainsKey(netId))
|
||||
{
|
||||
Utility.s_dictTokens.Remove(netId);
|
||||
}
|
||||
Utility.s_dictTokens.Add(netId, accessToken);
|
||||
}
|
||||
|
||||
// Token: 0x06002E80 RID: 11904 RVA: 0x000431C0 File Offset: 0x000413C0
|
||||
public static NetworkAccessToken GetAccessTokenForNetwork(NetworkID netId)
|
||||
{
|
||||
NetworkAccessToken networkAccessToken;
|
||||
if (!Utility.s_dictTokens.TryGetValue(netId, out networkAccessToken))
|
||||
{
|
||||
networkAccessToken = new NetworkAccessToken();
|
||||
}
|
||||
return networkAccessToken;
|
||||
}
|
||||
|
||||
// Token: 0x04000903 RID: 2307
|
||||
private static Dictionary<NetworkID, NetworkAccessToken> s_dictTokens = new Dictionary<NetworkID, NetworkAccessToken>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user