126 lines
5.7 KiB
C#
126 lines
5.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000493 RID: 1171
|
|
[Token(Token = "0x2000493")]
|
|
[ExecuteInEditMode]
|
|
public class TeleportTarget : MonoBehaviour
|
|
{
|
|
// Token: 0x170005FF RID: 1535
|
|
// (get) Token: 0x060022B2 RID: 8882 RVA: 0x0008C31C File Offset: 0x0008A51C
|
|
// (set) Token: 0x060022B3 RID: 8883 RVA: 0x0008C330 File Offset: 0x0008A530
|
|
[Token(Token = "0x170005FF")]
|
|
public bool CJBCHDEABNJ
|
|
{
|
|
[Token(Token = "0x60022B2")]
|
|
[Address(RVA = "0x6350A0", Offset = "0x6340A0", VA = "0x1806350A0")]
|
|
get;
|
|
[Token(Token = "0x60022B3")]
|
|
[Address(RVA = "0x6350C0", Offset = "0x6340C0", VA = "0x1806350C0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x060022B4 RID: 8884 RVA: 0x0008C344 File Offset: 0x0008A544
|
|
[Token(Token = "0x60022B4")]
|
|
[Address(RVA = "0x147EAE0", Offset = "0x147DAE0", VA = "0x18147EAE0")]
|
|
private void Awake()
|
|
{
|
|
Transform transform = base.transform;
|
|
}
|
|
|
|
// Token: 0x060022B5 RID: 8885 RVA: 0x0008C360 File Offset: 0x0008A560
|
|
[Token(Token = "0x60022B5")]
|
|
[Address(RVA = "0x147EAE0", Offset = "0x147DAE0", VA = "0x18147EAE0")]
|
|
private void NPIAAGCDCKK()
|
|
{
|
|
Transform transform = base.transform;
|
|
}
|
|
|
|
// Token: 0x060022B6 RID: 8886 RVA: 0x0008C37C File Offset: 0x0008A57C
|
|
[Token(Token = "0x60022B6")]
|
|
[Address(RVA = "0x147EC10", Offset = "0x147DC10", VA = "0x18147EC10")]
|
|
public void OnPlayerTeleported(Player IEKDDPPNFPF, Vector3 FLAFPCDEJIM, Vector3 HBHFKCLAILI)
|
|
{
|
|
Transform transform = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
float z2 = HBHFKCLAILI.z;
|
|
if (this.PlayerTeleportedEvent != 0)
|
|
{
|
|
float num = this.targetRadius;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060022B7 RID: 8887 RVA: 0x0008C3B8 File Offset: 0x0008A5B8
|
|
[Token(Token = "0x60022B7")]
|
|
[Address(RVA = "0x147ED00", Offset = "0x147DD00", VA = "0x18147ED00")]
|
|
public IEnumerator RunCheckForPlayerWalkToTarget(Player IEKDDPPNFPF)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060022B7)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator TeleportTarget::RunCheckForPlayerWalkToTarget(Player)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(JLMPKOOIILI::System.IDisposable.Dispose, ldloc:JLMPKOOIILI(var_0))
|
|
stfld:TeleportTarget(JLMPKOOIILI::<>4__this, ldloc:JLMPKOOIILI(var_0), ldloc:TeleportTarget(this))
|
|
stfld:int32(JLMPKOOIILI::<>1__state, ldloc:JLMPKOOIILI(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:Player(JLMPKOOIILI::player, ldloc:JLMPKOOIILI(var_0), ldloc:Player(IEKDDPPNFPF))
|
|
}
|
|
|
|
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: 0x060022B8 RID: 8888 RVA: 0x0008C3E4 File Offset: 0x0008A5E4
|
|
[Token(Token = "0x60022B8")]
|
|
[Address(RVA = "0x147EB60", Offset = "0x147DB60", VA = "0x18147EB60")]
|
|
private void OnDrawGizmos()
|
|
{
|
|
Color color = Gizmos.color;
|
|
Color green = Color.green;
|
|
Transform transform = base.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
}
|
|
|
|
// Token: 0x060022B9 RID: 8889 RVA: 0x0008C414 File Offset: 0x0008A614
|
|
[Token(Token = "0x60022B9")]
|
|
[Address(RVA = "0x147ED70", Offset = "0x147DD70", VA = "0x18147ED70")]
|
|
public TeleportTarget()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001AA0 RID: 6816
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001AA0")]
|
|
[SerializeField]
|
|
private PulsingBeam beam;
|
|
|
|
// Token: 0x04001AA1 RID: 6817
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001AA1")]
|
|
[SerializeField]
|
|
private float targetRadius = 2.5f;
|
|
|
|
// Token: 0x04001AA3 RID: 6819
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001AA3")]
|
|
public Action<bool> PlayerTeleportedEvent;
|
|
|
|
// Token: 0x04001AA4 RID: 6820
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001AA4")]
|
|
public Action PlayerWalkedToTargetEvent;
|
|
}
|