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
+92
View File
@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using UnityEngine.Networking.Types;
namespace UnityEngine.Networking.Match
{
// Token: 0x020002B2 RID: 690
internal class MatchDesc : ResponseBase
{
// Token: 0x17000A91 RID: 2705
// (get) Token: 0x06002E52 RID: 11858 RVA: 0x00042B40 File Offset: 0x00040D40
// (set) Token: 0x06002E53 RID: 11859 RVA: 0x00042B5C File Offset: 0x00040D5C
public NetworkID networkId { get; set; }
// Token: 0x17000A92 RID: 2706
// (get) Token: 0x06002E54 RID: 11860 RVA: 0x00042B68 File Offset: 0x00040D68
// (set) Token: 0x06002E55 RID: 11861 RVA: 0x00042B84 File Offset: 0x00040D84
public string name { get; set; }
// Token: 0x17000A93 RID: 2707
// (get) Token: 0x06002E56 RID: 11862 RVA: 0x00042B90 File Offset: 0x00040D90
// (set) Token: 0x06002E57 RID: 11863 RVA: 0x00042BAC File Offset: 0x00040DAC
public int averageEloScore { get; set; }
// Token: 0x17000A94 RID: 2708
// (get) Token: 0x06002E58 RID: 11864 RVA: 0x00042BB8 File Offset: 0x00040DB8
// (set) Token: 0x06002E59 RID: 11865 RVA: 0x00042BD4 File Offset: 0x00040DD4
public int maxSize { get; set; }
// Token: 0x17000A95 RID: 2709
// (get) Token: 0x06002E5A RID: 11866 RVA: 0x00042BE0 File Offset: 0x00040DE0
// (set) Token: 0x06002E5B RID: 11867 RVA: 0x00042BFC File Offset: 0x00040DFC
public int currentSize { get; set; }
// Token: 0x17000A96 RID: 2710
// (get) Token: 0x06002E5C RID: 11868 RVA: 0x00042C08 File Offset: 0x00040E08
// (set) Token: 0x06002E5D RID: 11869 RVA: 0x00042C24 File Offset: 0x00040E24
public bool isPrivate { get; set; }
// Token: 0x17000A97 RID: 2711
// (get) Token: 0x06002E5E RID: 11870 RVA: 0x00042C30 File Offset: 0x00040E30
// (set) Token: 0x06002E5F RID: 11871 RVA: 0x00042C4C File Offset: 0x00040E4C
public Dictionary<string, long> matchAttributes { get; set; }
// Token: 0x17000A98 RID: 2712
// (get) Token: 0x06002E60 RID: 11872 RVA: 0x00042C58 File Offset: 0x00040E58
// (set) Token: 0x06002E61 RID: 11873 RVA: 0x00042C74 File Offset: 0x00040E74
public NodeID hostNodeId { get; set; }
// Token: 0x17000A99 RID: 2713
// (get) Token: 0x06002E62 RID: 11874 RVA: 0x00042C80 File Offset: 0x00040E80
// (set) Token: 0x06002E63 RID: 11875 RVA: 0x00042C9C File Offset: 0x00040E9C
public List<MatchDirectConnectInfo> directConnectInfos { get; set; }
// Token: 0x06002E64 RID: 11876 RVA: 0x00042CA8 File Offset: 0x00040EA8
public override string ToString()
{
return UnityString.Format("[{0}]-networkId:0x{1},name:{2},averageEloScore:{3},maxSize:{4},currentSize:{5},isPrivate:{6},matchAttributes.Count:{7},hostNodeId:{8},directConnectInfos.Count:{9}", new object[]
{
base.ToString(),
this.networkId.ToString("X"),
this.name,
this.averageEloScore,
this.maxSize,
this.currentSize,
this.isPrivate,
(this.matchAttributes != null) ? this.matchAttributes.Count : 0,
this.hostNodeId,
this.directConnectInfos.Count
});
}
// Token: 0x06002E65 RID: 11877 RVA: 0x00042D7C File Offset: 0x00040F7C
public override void Parse(object obj)
{
IDictionary<string, object> dictionary = obj as IDictionary<string, object>;
if (dictionary != null)
{
this.networkId = (NetworkID)base.ParseJSONUInt64("networkId", obj, dictionary);
this.name = base.ParseJSONString("name", obj, dictionary);
this.averageEloScore = base.ParseJSONInt32("averageEloScore", obj, dictionary);
this.maxSize = base.ParseJSONInt32("maxSize", obj, dictionary);
this.currentSize = base.ParseJSONInt32("currentSize", obj, dictionary);
this.isPrivate = base.ParseJSONBool("isPrivate", obj, dictionary);
this.hostNodeId = (NodeID)base.ParseJSONUInt16("hostNodeId", obj, dictionary);
this.directConnectInfos = base.ParseJSONList<MatchDirectConnectInfo>("directConnectInfos", obj, dictionary);
return;
}
throw new FormatException("While parsing JSON response, found obj is not of type IDictionary<string,object>:" + obj.ToString());
}
}
}