208 lines
8.9 KiB
C#
208 lines
8.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using MarsSDK;
|
|
using MEC;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020002A9 RID: 681
|
|
[Token(Token = "0x20002A9")]
|
|
public class UIMagicLockController
|
|
{
|
|
// Token: 0x060019D1 RID: 6609 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019D1")]
|
|
[Address(RVA = "0x10E38C0", Offset = "0x10E20C0", VA = "0x1810E38C0")]
|
|
public void InitIceLockSystem(GameObject prefab, Transform poolRoot)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019D2 RID: 6610 RVA: 0x0003E854 File Offset: 0x0003CA54
|
|
[Token(Token = "0x60019D2")]
|
|
[Address(RVA = "0x453BA0", Offset = "0x4523A0", VA = "0x180453BA0")]
|
|
public void InitFireLockSystem(UIMagicLock uiFireLock)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060019D2)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UIMagicLockController::InitFireLockSystem(UIMagicLock)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; stfld:UIMagicLock(UIMagicLockController::uiFireLock, ldloc:UIMagicLockController(this), ldloc:UIMagicLock(uiFireLock)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
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 344
|
|
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 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060019D3 RID: 6611 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019D3")]
|
|
[Address(RVA = "0x10E33A0", Offset = "0x10E1BA0", VA = "0x1810E33A0")]
|
|
public void AddIceLockUI(Transform source)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019D4 RID: 6612 RVA: 0x0003E868 File Offset: 0x0003CA68
|
|
[Token(Token = "0x60019D4")]
|
|
[Address(RVA = "0x10E3AE0", Offset = "0x10E22E0", VA = "0x1810E3AE0")]
|
|
public void RemoveIceLockUI(Transform source)
|
|
{
|
|
UIMagicLock[] activePoolClone = this.iceLockPool.GetActivePoolClone();
|
|
int num = 0;
|
|
int length = activePoolClone.Length;
|
|
if (num < length)
|
|
{
|
|
UIMagicLock uimagicLock = activePoolClone[num];
|
|
if (!uimagicLock.IsSameLockTarget(source))
|
|
{
|
|
num++;
|
|
}
|
|
uimagicLock.Dispose();
|
|
this.iceLockPool.Return(uimagicLock);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060019D5 RID: 6613 RVA: 0x0003E8BC File Offset: 0x0003CABC
|
|
[Token(Token = "0x60019D5")]
|
|
[Address(RVA = "0x10E3C00", Offset = "0x10E2400", VA = "0x1810E3C00")]
|
|
public void SwapIceLockTarget(Transform oldTarget, Transform newTarget)
|
|
{
|
|
UIMagicLock[] activePoolClone = this.iceLockPool.GetActivePoolClone();
|
|
int num = 0;
|
|
int length = activePoolClone.Length;
|
|
if (num < length)
|
|
{
|
|
UIMagicLock uimagicLock = activePoolClone[num];
|
|
Transform lockTarget = uimagicLock.lockTarget;
|
|
int num2 = 0;
|
|
if (!(lockTarget == num2))
|
|
{
|
|
int instanceID = uimagicLock.lockTarget.GetInstanceID();
|
|
int instanceID2 = oldTarget.GetInstanceID();
|
|
if (instanceID == instanceID2)
|
|
{
|
|
num++;
|
|
}
|
|
}
|
|
uimagicLock.Appear(newTarget);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060019D6 RID: 6614 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019D6")]
|
|
[Address(RVA = "0x10E34B0", Offset = "0x10E1CB0", VA = "0x1810E34B0")]
|
|
public void ClearAllIceLockUI()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019D7 RID: 6615 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019D7")]
|
|
[Address(RVA = "0x10E32C0", Offset = "0x10E1AC0", VA = "0x1810E32C0")]
|
|
public void AddFireLockUI(Transform source)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019D8 RID: 6616 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019D8")]
|
|
[Address(RVA = "0x10E39E0", Offset = "0x10E21E0", VA = "0x1810E39E0")]
|
|
public void RemoveFireLockUI(Transform source)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019D9 RID: 6617 RVA: 0x0003E930 File Offset: 0x0003CB30
|
|
[Token(Token = "0x60019D9")]
|
|
[Address(RVA = "0x10E3BE0", Offset = "0x10E23E0", VA = "0x1810E3BE0")]
|
|
public void SwapFireLockTarget(Transform newTarget)
|
|
{
|
|
this.uiFireLock.Appear(newTarget);
|
|
}
|
|
|
|
// Token: 0x060019DA RID: 6618 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019DA")]
|
|
[Address(RVA = "0x10E35B0", Offset = "0x10E1DB0", VA = "0x1810E35B0")]
|
|
public void ClearFireLockUI()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019DB RID: 6619 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019DB")]
|
|
[Address(RVA = "0x10E3690", Offset = "0x10E1E90", VA = "0x1810E3690")]
|
|
public void Dispose()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019DC RID: 6620 RVA: 0x0003E950 File Offset: 0x0003CB50
|
|
[Token(Token = "0x60019DC")]
|
|
[Address(RVA = "0x43A830", Offset = "0x439030", VA = "0x18043A830")]
|
|
public UIMagicLockController()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060019DD RID: 6621 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019DD")]
|
|
[Address(RVA = "0x10E3DC0", Offset = "0x10E25C0", VA = "0x1810E3DC0")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <AddIceLockUI>g__UpdateIceLockPosition|6_0()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019DE RID: 6622 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019DE")]
|
|
[Address(RVA = "0x10E3E30", Offset = "0x10E2630", VA = "0x1810E3E30")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <ClearAllIceLockUI>g__RecycleUI|9_0()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019DF RID: 6623 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019DF")]
|
|
[Address(RVA = "0x10E3D50", Offset = "0x10E2550", VA = "0x1810E3D50")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <AddFireLockUI>g__UpdateFireLockPosition|10_0()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060019E0 RID: 6624 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x60019E0")]
|
|
[Address(RVA = "0x10E3EA0", Offset = "0x10E26A0", VA = "0x1810E3EA0")]
|
|
[CompilerGenerated]
|
|
private IEnumerator<float> <ClearFireLockUI>g__RecycleUI|13_0()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0400239E RID: 9118
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400239E")]
|
|
private GameObjectPool<UIMagicLock> iceLockPool;
|
|
|
|
// Token: 0x0400239F RID: 9119
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400239F")]
|
|
private CoroutineHandle iceLockCoroutine;
|
|
|
|
// Token: 0x040023A0 RID: 9120
|
|
[FieldOffset(Offset = "0x1C")]
|
|
[Token(Token = "0x40023A0")]
|
|
private CoroutineHandle fireLockCoroutine;
|
|
|
|
// Token: 0x040023A1 RID: 9121
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40023A1")]
|
|
private UIMagicLock uiFireLock;
|
|
}
|