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

45 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine.Networking.Types;
namespace UnityEngine.Networking.Match
{
// Token: 0x020002AF RID: 687
internal class DropConnectionResponse : Response
{
// Token: 0x17000A83 RID: 2691
// (get) Token: 0x06002E2D RID: 11821 RVA: 0x000425E0 File Offset: 0x000407E0
// (set) Token: 0x06002E2E RID: 11822 RVA: 0x000425FC File Offset: 0x000407FC
public NetworkID networkId { get; set; }
// Token: 0x17000A84 RID: 2692
// (get) Token: 0x06002E2F RID: 11823 RVA: 0x00042608 File Offset: 0x00040808
// (set) Token: 0x06002E30 RID: 11824 RVA: 0x00042624 File Offset: 0x00040824
public NodeID nodeId { get; set; }
// Token: 0x06002E31 RID: 11825 RVA: 0x00042630 File Offset: 0x00040830
public override string ToString()
{
return UnityString.Format("[{0}]-networkId:{1}", new object[]
{
base.ToString(),
this.networkId.ToString("X")
});
}
// Token: 0x06002E32 RID: 11826 RVA: 0x0004267C File Offset: 0x0004087C
public override void Parse(object obj)
{
base.Parse(obj);
IDictionary<string, object> dictionary = obj as IDictionary<string, object>;
if (dictionary != null)
{
this.networkId = (NetworkID)base.ParseJSONUInt64("networkId", obj, dictionary);
this.nodeId = (NodeID)base.ParseJSONUInt16("nodeId", obj, dictionary);
return;
}
throw new FormatException("While parsing JSON response, found obj is not of type IDictionary<string,object>:" + obj.ToString());
}
}
}