terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
DiscordJoinToServerRequest.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000525 RID: 1317
7 public class DiscordJoinToServerRequest : UserJoinToServerRequest, IEquatable<DiscordJoinToServerRequest>
8 {
9 // Token: 0x060031A9 RID: 12713 RVA: 0x001F8BA4 File Offset: 0x001F6DA4
11 {
13 this.<UserFullIdentifier>k__BackingField = fullIdentifier;
14 if (!true)
15 {
16 }
18 DateTime dateTime;
19 this._expirationTime = dateTime;
20 }
21
22 // Token: 0x060031AA RID: 12714 RVA: 0x001F8BD8 File Offset: 0x001F6DD8
23 public override bool IsValid()
24 {
25 /*
26An exception occurred when decompiling this method (060031AA)
27
28ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Social.Discord.DiscordJoinToServerRequest::IsValid()
29
30 ---> System.Exception: Basic block has to end with unconditional control flow.
31{
32 IL_000A:
33 stloc:DateTime(var_2_11, callgetter:DateTime(DateTime::get_UtcNow))
34 stloc:int32(var_3_19, call:int32(DateTime::Compare, ldloc:DateTime(var_0_06), ldloc:DateTime(var_2_11)))
35}
36
37 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
38 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
39 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
40 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
41 --- End of inner exception stack trace ---
42 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
43 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 1683
44*/;
45 }
46
47 // Token: 0x060031AB RID: 12715 RVA: 0x001F8C00 File Offset: 0x001F6E00
48 public override string GetUserWrapperText()
49 {
50 if (!true)
51 {
52 }
55 string text = timeSpan.Seconds.ToString();
56 return "{DisplayName} wants to join you! (" + text + ")\n{FullId}";
57 }
58
59 // Token: 0x060031AC RID: 12716 RVA: 0x001F8C34 File Offset: 0x001F6E34
66
67 // Token: 0x04003B58 RID: 15192
69 }
70}
class f__AnonymousType0<< Count > j__TPar
DiscordJoinToServerRequest(string userDisplayName, string fullIdentifier, int durationInSeconds=30)
static DateTime UtcNow
Definition DateTime.cs:1318