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
EntryFilterer.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000628 RID: 1576
7 public class EntryFilterer<T, U> where T : new() where U : IEntryFilter<T>
8 {
9 // Token: 0x060035F7 RID: 13815 RVA: 0x00211F88 File Offset: 0x00210188
11 {
13 this.ActiveFilters = this;
15 }
16
17 // Token: 0x060035F8 RID: 13816 RVA: 0x00211FB0 File Offset: 0x002101B0
22
23 // Token: 0x060035F9 RID: 13817 RVA: 0x00211FC4 File Offset: 0x002101C4
24 public bool FitsFilter(T entry)
25 {
26 if (this._searchFilter != null)
27 {
28 }
32 if (this.ActiveFilters != null)
33 {
37 return;
38 }
39 }
40
41 // Token: 0x060035FA RID: 13818 RVA: 0x00212018 File Offset: 0x00210218
42 public void ToggleFilter(int filterIndex)
43 {
44 }
45
46 // Token: 0x060035FB RID: 13819 RVA: 0x00212028 File Offset: 0x00210228
47 public bool IsFilterActive(int filterIndex)
48 {
49 /*
50An exception occurred when decompiling this method (060035FB)
51
52ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.DataStructures.EntryFilterer`2::IsFilterActive(System.Int32)
53
54 ---> System.Exception: Basic block has to end with unconditional control flow.
55{
56 IL_000A:
57 stloc:List`1(var_1_10, ldfld:class [mscorlib]System.Collections.Generic.List`1<!U>[exp:List`1](EntryFilterer`2::AvailableFilters, ldloc:EntryFilterer`2(this)))
58 stloc:List`1(var_2_17, ldfld:class [mscorlib]System.Collections.Generic.List`1<!U>[exp:List`1](EntryFilterer`2::ActiveFilters, ldloc:EntryFilterer`2(this)))
59}
60
61 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
62 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
63 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
64 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
65 --- End of inner exception stack trace ---
66 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
67 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
68*/;
69 }
70
71 // Token: 0x060035FC RID: 13820 RVA: 0x00212050 File Offset: 0x00210250
72 public void SetSearchFilterObject<Z>(Z searchFilter) where Z : ISearchFilter<T>, U
73 {
75 }
76
77 // Token: 0x060035FD RID: 13821 RVA: 0x00212064 File Offset: 0x00210264
78 public void SetSearchFilter(string searchFilter)
79 {
80 bool flag = string.IsNullOrWhiteSpace(searchFilter);
81 }
82
83 // Token: 0x060035FE RID: 13822 RVA: 0x0021208C File Offset: 0x0021028C
84 public string GetDisplayName()
85 {
87 string text;
88 return text;
89 }
90
91 // Token: 0x040076C9 RID: 30409
93
94 // Token: 0x040076CA RID: 30410
96
97 // Token: 0x040076CB RID: 30411
99
100 // Token: 0x040076CC RID: 30412
102
103 // Token: 0x040076CD RID: 30413
105 }
106}
class f__AnonymousType0<< Count > j__TPar
void SetSearchFilter(string searchFilter)
void AddFilters(List< U > filters)
ISearchFilter< T > _searchFilterFromConstructor
void SetSearchFilterObject< Z >(Z searchFilter)