Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

241 lines
8.4 KiB
C#

using System;
using Cpp2IlInjected;
namespace Steamworks
{
// Token: 0x02001913 RID: 6419
[Token(Token = "0x2001913")]
[Serializable]
public struct servernetadr_t
{
// Token: 0x060092C7 RID: 37575 RVA: 0x001E1650 File Offset: 0x001DF850
[Token(Token = "0x60092C7")]
[Address(RVA = "0x5AAE40", Offset = "0x5A9E40", VA = "0x1805AAE40")]
public void Init(uint ip, ushort usQueryPort, ushort usConnectionPort)
{
this.m_unIP = ip;
this.m_usQueryPort = usQueryPort;
this.m_usConnectionPort = usConnectionPort;
}
// Token: 0x060092C8 RID: 37576 RVA: 0x001E1674 File Offset: 0x001DF874
[Token(Token = "0x60092C8")]
[Address(RVA = "0x5AAE30", Offset = "0x5A9E30", VA = "0x1805AAE30")]
public ushort GetQueryPort()
{
return this.m_usQueryPort;
}
// Token: 0x060092C9 RID: 37577 RVA: 0x001E1688 File Offset: 0x001DF888
[Token(Token = "0x60092C9")]
[Address(RVA = "0x5AAE70", Offset = "0x5A9E70", VA = "0x1805AAE70")]
public void SetQueryPort(ushort usPort)
{
this.m_usQueryPort = usPort;
}
// Token: 0x060092CA RID: 37578 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60092CA")]
[Address(RVA = "0x5AADB0", Offset = "0x5A9DB0", VA = "0x1805AADB0")]
public ushort GetConnectionPort()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060092CB RID: 37579 RVA: 0x001E169C File Offset: 0x001DF89C
[Token(Token = "0x60092CB")]
[Address(RVA = "0x5AAE50", Offset = "0x5A9E50", VA = "0x1805AAE50")]
public void SetConnectionPort(ushort usPort)
{
this.m_usConnectionPort = usPort;
}
// Token: 0x060092CC RID: 37580 RVA: 0x001E16B0 File Offset: 0x001DF8B0
[Token(Token = "0x60092CC")]
[Address(RVA = "0x5AAE10", Offset = "0x5A9E10", VA = "0x1805AAE10")]
public uint GetIP()
{
return this.m_unIP;
}
// Token: 0x060092CD RID: 37581 RVA: 0x001E16C4 File Offset: 0x001DF8C4
[Token(Token = "0x60092CD")]
[Address(RVA = "0x5AAE60", Offset = "0x5A9E60", VA = "0x1805AAE60")]
public void SetIP(uint unIP)
{
this.m_unIP = unIP;
}
// Token: 0x060092CE RID: 37582 RVA: 0x001E16D8 File Offset: 0x001DF8D8
[Token(Token = "0x60092CE")]
[Address(RVA = "0x5AADA0", Offset = "0x5A9DA0", VA = "0x1805AADA0")]
public string GetConnectionAddressString()
{
uint unIP = this.m_unIP;
string text;
return text;
}
// Token: 0x060092CF RID: 37583 RVA: 0x001E16F0 File Offset: 0x001DF8F0
[Token(Token = "0x60092CF")]
[Address(RVA = "0x5AAE20", Offset = "0x5A9E20", VA = "0x1805AAE20")]
public string GetQueryAddressString()
{
ushort usQueryPort = this.m_usQueryPort;
return servernetadr_t.ToString(this.m_unIP, usQueryPort);
}
// Token: 0x060092D0 RID: 37584 RVA: 0x001E1710 File Offset: 0x001DF910
[Token(Token = "0x60092D0")]
[Address(RVA = "0x5AAE80", Offset = "0x5A9E80", VA = "0x1805AAE80")]
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: 0x060092D1 RID: 37585 RVA: 0x001E1778 File Offset: 0x001DF978
[Token(Token = "0x60092D1")]
[Address(RVA = "0x5AB1C0", Offset = "0x5AA1C0", VA = "0x1805AB1C0")]
public static bool operator <(servernetadr_t x, servernetadr_t y)
{
while (x >= y)
{
if (x != y)
{
}
}
return true;
}
// Token: 0x060092D2 RID: 37586 RVA: 0x001E1790 File Offset: 0x001DF990
[Token(Token = "0x60092D2")]
[Address(RVA = "0x5AB150", Offset = "0x5AA150", VA = "0x1805AB150")]
public static bool operator >(servernetadr_t x, servernetadr_t y)
{
while (x <= y)
{
if (x != y)
{
}
}
return true;
}
// Token: 0x060092D3 RID: 37587 RVA: 0x001E17A8 File Offset: 0x001DF9A8
[Token(Token = "0x60092D3")]
[Address(RVA = "0x5AACC0", Offset = "0x5A9CC0", VA = "0x1805AACC0", Slot = "0")]
public override bool Equals(object other)
{
if (other != 0 && other != 0)
{
bool flag;
return flag;
}
}
// Token: 0x060092D4 RID: 37588 RVA: 0x001E17C0 File Offset: 0x001DF9C0
[Token(Token = "0x60092D4")]
[Address(RVA = "0x5AADC0", Offset = "0x5A9DC0", VA = "0x1805AADC0", Slot = "2")]
public override int GetHashCode()
{
/*
An exception occurred when decompiling this method (060092D4)
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 1663
*/;
}
// Token: 0x060092D5 RID: 37589 RVA: 0x001E17D4 File Offset: 0x001DF9D4
[Token(Token = "0x60092D5")]
[Address(RVA = "0x5AB110", Offset = "0x5AA110", VA = "0x1805AB110")]
public static bool operator ==(servernetadr_t x, servernetadr_t y)
{
if (x == y && x == y)
{
return x == y;
}
}
// Token: 0x060092D6 RID: 37590 RVA: 0x001E17F0 File Offset: 0x001DF9F0
[Token(Token = "0x60092D6")]
[Address(RVA = "0x5AB180", Offset = "0x5AA180", VA = "0x1805AB180")]
public static bool operator !=(servernetadr_t x, servernetadr_t y)
{
return x != y || x != y || x != y;
}
// Token: 0x060092D7 RID: 37591 RVA: 0x001E1810 File Offset: 0x001DFA10
[Token(Token = "0x60092D7")]
[Address(RVA = "0x5AAD70", Offset = "0x5A9D70", VA = "0x1805AAD70")]
public bool Equals(servernetadr_t other)
{
if (this.m_unIP == other && this.m_usQueryPort == other)
{
bool flag;
return flag;
}
}
// Token: 0x060092D8 RID: 37592 RVA: 0x001E1834 File Offset: 0x001DFA34
[Token(Token = "0x60092D8")]
[Address(RVA = "0x5AAC50", Offset = "0x5A9C50", VA = "0x1805AAC50")]
public int CompareTo(servernetadr_t other)
{
int num;
num += num;
num += num;
return num;
}
// Token: 0x0400651B RID: 25883
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400651B")]
private ushort m_usConnectionPort;
// Token: 0x0400651C RID: 25884
[FieldOffset(Offset = "0x2")]
[Token(Token = "0x400651C")]
private ushort m_usQueryPort;
// Token: 0x0400651D RID: 25885
[FieldOffset(Offset = "0x4")]
[Token(Token = "0x400651D")]
private uint m_unIP;
}
}