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

200 lines
7.7 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
using RecRoom.Core.Combat;
using UnityEngine;
namespace RecRoom.Activities.Quest
{
// Token: 0x02002CFB RID: 11515
[Token(Token = "0x2002CFB")]
public class QuestWeaponCorkScaler : MonoBehaviour
{
// Token: 0x0601352C RID: 79148 RVA: 0x00471F90 File Offset: 0x00470190
[Token(Token = "0x601352C")]
[Address(RVA = "0x18E0EB0", Offset = "0x18DFEB0", VA = "0x1818E0EB0")]
private void Awake()
{
Transform transform = this.cork;
Transform transform2 = this.cork;
Vector3 vector;
float z = vector.z;
this.HKMCOIGMGAP.z = z;
RangedWeapon rangedWeapon = this.weapon;
Vector3 vector2;
float z2 = vector2.z;
this.NKLMOCKILOM.z = z2;
Action action = new Action(this.CCJCAPOLAMJ);
rangedWeapon.OFOLKCFPBEN += action;
}
// Token: 0x0601352D RID: 79149 RVA: 0x00471FFC File Offset: 0x004701FC
[Token(Token = "0x601352D")]
[Address(RVA = "0x18E11C0", Offset = "0x18E01C0", VA = "0x1818E11C0")]
private void OnDestroy()
{
RangedWeapon rangedWeapon = this.weapon;
Action action = new Action(this.CCJCAPOLAMJ);
rangedWeapon.OFOLKCFPBEN -= action;
}
// Token: 0x0601352E RID: 79150 RVA: 0x0047202C File Offset: 0x0047022C
[Token(Token = "0x601352E")]
[Address(RVA = "0x18E0FE0", Offset = "0x18DFFE0", VA = "0x1818E0FE0")]
private void CCJCAPOLAMJ()
{
if (this.weapon.DFPKOJKFNIF != 0)
{
Coroutine dpobdoceehi = this.DPOBDOCEEHI;
if (dpobdoceehi != 0)
{
base.StopCoroutine(dpobdoceehi);
this.DPOBDOCEEHI = (ulong)0L;
}
QuestWeaponCorkScaler.LIGHJLFKGLO lighjlfkglo;
lighjlfkglo.System.IDisposable.Dispose();
lighjlfkglo.<>1__state = (int)((ulong)0L);
lighjlfkglo.<>4__this = this;
Coroutine coroutine = base.StartCoroutine(lighjlfkglo);
this.DPOBDOCEEHI = coroutine;
return;
}
Coroutine dpobdoceehi2 = this.DPOBDOCEEHI;
if (dpobdoceehi2 != 0)
{
base.StopCoroutine(dpobdoceehi2);
this.DPOBDOCEEHI = (ulong)0L;
}
Transform transform = this.cork;
float z = Vector3.zero.z;
}
// Token: 0x0601352F RID: 79151 RVA: 0x004720C0 File Offset: 0x004702C0
[Token(Token = "0x601352F")]
[Address(RVA = "0x18E1120", Offset = "0x18E0120", VA = "0x1818E1120")]
private void FOGHCOIGHNB()
{
Coroutine dpobdoceehi = this.DPOBDOCEEHI;
if (dpobdoceehi != 0)
{
base.StopCoroutine(dpobdoceehi);
this.DPOBDOCEEHI = (ulong)0L;
}
Transform transform = this.cork;
float z = Vector3.zero.z;
}
// Token: 0x06013530 RID: 79152 RVA: 0x00472100 File Offset: 0x00470300
[Token(Token = "0x6013530")]
[Address(RVA = "0x18E0E20", Offset = "0x18DFE20", VA = "0x1818E0E20")]
private void ACKFCKMLBHP()
{
Coroutine dpobdoceehi = this.DPOBDOCEEHI;
if (dpobdoceehi != 0)
{
base.StopCoroutine(dpobdoceehi);
this.DPOBDOCEEHI = (ulong)0L;
}
QuestWeaponCorkScaler.LIGHJLFKGLO lighjlfkglo;
lighjlfkglo.System.IDisposable.Dispose();
lighjlfkglo.<>1__state = (int)((ulong)0L);
lighjlfkglo.<>4__this = this;
Coroutine coroutine = base.StartCoroutine(lighjlfkglo);
this.DPOBDOCEEHI = coroutine;
}
// Token: 0x06013531 RID: 79153 RVA: 0x00472150 File Offset: 0x00470350
[Token(Token = "0x6013531")]
[Address(RVA = "0x1321720", Offset = "0x1320720", VA = "0x181321720")]
private void FLPGKNLMGGB()
{
Coroutine dpobdoceehi = this.DPOBDOCEEHI;
if (dpobdoceehi != 0)
{
base.StopCoroutine(dpobdoceehi);
this.DPOBDOCEEHI = (ulong)0L;
}
}
// Token: 0x06013532 RID: 79154 RVA: 0x00472178 File Offset: 0x00470378
[Token(Token = "0x6013532")]
[Address(RVA = "0x18E0F80", Offset = "0x18DFF80", VA = "0x1818E0F80")]
private IEnumerator BJDMHJNCCGM()
{
/*
An exception occurred when decompiling this method (06013532)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator RecRoom.Activities.Quest.QuestWeaponCorkScaler::BJDMHJNCCGM()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
call:void(LIGHJLFKGLO::System.IDisposable.Dispose, ldloc:LIGHJLFKGLO(var_0))
stfld:int32(LIGHJLFKGLO::<>1__state, ldloc:LIGHJLFKGLO(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
stfld:QuestWeaponCorkScaler(LIGHJLFKGLO::<>4__this, ldloc:LIGHJLFKGLO(var_0), ldloc:QuestWeaponCorkScaler(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: 0x06013533 RID: 79155 RVA: 0x0047219C File Offset: 0x0047039C
[Token(Token = "0x6013533")]
[Address(RVA = "0x18E1240", Offset = "0x18E0240", VA = "0x1818E1240")]
public QuestWeaponCorkScaler()
{
float z = Vector3.zero.z;
this.HKMCOIGMGAP.z = z;
float z2 = Vector3.one.z;
this.NKLMOCKILOM.z = z2;
base..ctor();
}
// Token: 0x0400C823 RID: 51235
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400C823")]
[SerializeField]
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
private RangedWeapon weapon;
// Token: 0x0400C824 RID: 51236
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400C824")]
[SerializeField]
private Transform cork;
// Token: 0x0400C825 RID: 51237
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400C825")]
[SerializeField]
private float scaleCorkDuration = 0.2f;
// Token: 0x0400C826 RID: 51238
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400C826")]
[SerializeField]
private Transform hiddenCorkLocalPositionTransform;
// Token: 0x0400C827 RID: 51239
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400C827")]
private Vector3 HKMCOIGMGAP;
// Token: 0x0400C828 RID: 51240
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x400C828")]
private Vector3 NKLMOCKILOM;
// Token: 0x0400C829 RID: 51241
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400C829")]
private Coroutine DPOBDOCEEHI;
}
}