Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

241 lines
8.4 KiB
C#

using System;
using Cpp2IlInjected;
namespace Steamworks
{
// Token: 0x02001833 RID: 6195
[Token(Token = "0x2001833")]
[Serializable]
public struct servernetadr_t
{
// Token: 0x06008EF9 RID: 36601 RVA: 0x001D8558 File Offset: 0x001D6758
[Token(Token = "0x6008EF9")]
[Address(RVA = "0x1AA81D0", Offset = "0x1AA6FD0", VA = "0x181AA81D0")]
public void Init(uint ip, ushort usQueryPort, ushort usConnectionPort)
{
this.m_unIP = ip;
this.m_usQueryPort = usQueryPort;
this.m_usConnectionPort = usConnectionPort;
}
// Token: 0x06008EFA RID: 36602 RVA: 0x001D857C File Offset: 0x001D677C
[Token(Token = "0x6008EFA")]
[Address(RVA = "0x1AA81C0", Offset = "0x1AA6FC0", VA = "0x181AA81C0")]
public ushort GetQueryPort()
{
return this.m_usQueryPort;
}
// Token: 0x06008EFB RID: 36603 RVA: 0x001D8590 File Offset: 0x001D6790
[Token(Token = "0x6008EFB")]
[Address(RVA = "0x1AA81E0", Offset = "0x1AA6FE0", VA = "0x181AA81E0")]
public void SetQueryPort(ushort usPort)
{
this.m_usQueryPort = usPort;
}
// Token: 0x06008EFC RID: 36604 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6008EFC")]
[Address(RVA = "0x1AA8150", Offset = "0x1AA6F50", VA = "0x181AA8150")]
public ushort GetConnectionPort()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06008EFD RID: 36605 RVA: 0x001D85A4 File Offset: 0x001D67A4
[Token(Token = "0x6008EFD")]
[Address(RVA = "0x69C9D0", Offset = "0x69B7D0", VA = "0x18069C9D0")]
public void SetConnectionPort(ushort usPort)
{
this.m_usConnectionPort = usPort;
}
// Token: 0x06008EFE RID: 36606 RVA: 0x001D85B8 File Offset: 0x001D67B8
[Token(Token = "0x6008EFE")]
[Address(RVA = "0x5DD040", Offset = "0x5DBE40", VA = "0x1805DD040")]
public uint GetIP()
{
return this.m_unIP;
}
// Token: 0x06008EFF RID: 36607 RVA: 0x001D85CC File Offset: 0x001D67CC
[Token(Token = "0x6008EFF")]
[Address(RVA = "0xD19CA0", Offset = "0xD18AA0", VA = "0x180D19CA0")]
public void SetIP(uint unIP)
{
this.m_unIP = unIP;
}
// Token: 0x06008F00 RID: 36608 RVA: 0x001D85E0 File Offset: 0x001D67E0
[Token(Token = "0x6008F00")]
[Address(RVA = "0x1AA8140", Offset = "0x1AA6F40", VA = "0x181AA8140")]
public string GetConnectionAddressString()
{
uint unIP = this.m_unIP;
string text;
return text;
}
// Token: 0x06008F01 RID: 36609 RVA: 0x001D85F8 File Offset: 0x001D67F8
[Token(Token = "0x6008F01")]
[Address(RVA = "0x1AA81B0", Offset = "0x1AA6FB0", VA = "0x181AA81B0")]
public string GetQueryAddressString()
{
ushort usQueryPort = this.m_usQueryPort;
return servernetadr_t.ToString(this.m_unIP, usQueryPort);
}
// Token: 0x06008F02 RID: 36610 RVA: 0x001D8618 File Offset: 0x001D6818
[Token(Token = "0x6008F02")]
[Address(RVA = "0x1AA81F0", Offset = "0x1AA6FF0", VA = "0x181AA81F0")]
public static string ToString(uint unIP, ushort usPort)
{
object[] array = new object[5];
if (array != 0)
{
}
array[0] = array;
if (unIP != (uint)0)
{
}
array[1] = unIP;
if (unIP != (uint)0)
{
}
array[2] = unIP;
if (unIP != (uint)0)
{
}
array[3] = unIP;
if (unIP != (uint)0)
{
}
array[4] = unIP;
return string.Format("{0}.{1}.{2}.{3}:{4}", array);
}
// Token: 0x06008F03 RID: 36611 RVA: 0x001D8680 File Offset: 0x001D6880
[Token(Token = "0x6008F03")]
[Address(RVA = "0x1AA8530", Offset = "0x1AA7330", VA = "0x181AA8530")]
public static bool operator <(servernetadr_t x, servernetadr_t y)
{
while (x >= y)
{
if (x != y)
{
}
}
return true;
}
// Token: 0x06008F04 RID: 36612 RVA: 0x001D8698 File Offset: 0x001D6898
[Token(Token = "0x6008F04")]
[Address(RVA = "0x1AA84C0", Offset = "0x1AA72C0", VA = "0x181AA84C0")]
public static bool operator >(servernetadr_t x, servernetadr_t y)
{
while (x <= y)
{
if (x != y)
{
}
}
return true;
}
// Token: 0x06008F05 RID: 36613 RVA: 0x001D86B0 File Offset: 0x001D68B0
[Token(Token = "0x6008F05")]
[Address(RVA = "0x1AA8060", Offset = "0x1AA6E60", VA = "0x181AA8060", Slot = "0")]
public override bool Equals(object other)
{
if (other != 0 && other != 0)
{
bool flag;
return flag;
}
}
// Token: 0x06008F06 RID: 36614 RVA: 0x001D86C8 File Offset: 0x001D68C8
[Token(Token = "0x6008F06")]
[Address(RVA = "0x1AA8160", Offset = "0x1AA6F60", VA = "0x181AA8160", Slot = "2")]
public override int GetHashCode()
{
/*
An exception occurred when decompiling this method (06008F06)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Steamworks.servernetadr_t::GetHashCode()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:uint16(var_0_06, call:uint16(servernetadr_t::GetConnectionPort, ldloc:valuetype Steamworks.servernetadr_t&(this)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660
*/;
}
// Token: 0x06008F07 RID: 36615 RVA: 0x001D86DC File Offset: 0x001D68DC
[Token(Token = "0x6008F07")]
[Address(RVA = "0x1AA8480", Offset = "0x1AA7280", VA = "0x181AA8480")]
public static bool operator ==(servernetadr_t x, servernetadr_t y)
{
if (x == y && x == y)
{
return x == y;
}
}
// Token: 0x06008F08 RID: 36616 RVA: 0x001D86F8 File Offset: 0x001D68F8
[Token(Token = "0x6008F08")]
[Address(RVA = "0x1AA84F0", Offset = "0x1AA72F0", VA = "0x181AA84F0")]
public static bool operator !=(servernetadr_t x, servernetadr_t y)
{
return x != y || x != y || x != y;
}
// Token: 0x06008F09 RID: 36617 RVA: 0x001D8718 File Offset: 0x001D6918
[Token(Token = "0x6008F09")]
[Address(RVA = "0x1AA8110", Offset = "0x1AA6F10", VA = "0x181AA8110")]
public bool Equals(servernetadr_t other)
{
if (this.m_unIP == other && this.m_usQueryPort == other)
{
bool flag;
return flag;
}
}
// Token: 0x06008F0A RID: 36618 RVA: 0x001D873C File Offset: 0x001D693C
[Token(Token = "0x6008F0A")]
[Address(RVA = "0x1AA7FF0", Offset = "0x1AA6DF0", VA = "0x181AA7FF0")]
public int CompareTo(servernetadr_t other)
{
int num;
num += num;
num += num;
return num;
}
// Token: 0x04006362 RID: 25442
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4006362")]
private ushort m_usConnectionPort;
// Token: 0x04006363 RID: 25443
[FieldOffset(Offset = "0x2")]
[Token(Token = "0x4006363")]
private ushort m_usQueryPort;
// Token: 0x04006364 RID: 25444
[FieldOffset(Offset = "0x4")]
[Token(Token = "0x4006364")]
private uint m_unIP;
}
}