scripts
This commit is contained in:
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace RecRoom.Inputs.Touch
|
||||
{
|
||||
// Token: 0x020022E7 RID: 8935
|
||||
[Token(Token = "0x20022E7")]
|
||||
[StructLayout(3)]
|
||||
public sealed class TouchSwipeRegion : TouchDragRegion
|
||||
{
|
||||
// Token: 0x1700298B RID: 10635
|
||||
// (get) Token: 0x0600F565 RID: 62821 RVA: 0x0039F034 File Offset: 0x0039D234
|
||||
[Token(Token = "0x1700298B")]
|
||||
public HCHOCGBEOCL HCAFPILHAHK
|
||||
{
|
||||
[Token(Token = "0x600F565")]
|
||||
[Address(RVA = "0x10D3610", Offset = "0x10D2010", VA = "0x1810D3610")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600F565)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling HCHOCGBEOCL RecRoom.Inputs.Touch.TouchSwipeRegion::get_SwipeInput()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_00:
|
||||
brtrue(IL_00, cne:bool(ldc.i4:int32(0), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600F566 RID: 62822 RVA: 0x0039F048 File Offset: 0x0039D248
|
||||
[Token(Token = "0x600F566")]
|
||||
[Address(RVA = "0x10D3400", Offset = "0x10D1E00", VA = "0x1810D3400", Slot = "9")]
|
||||
protected override HLPDIPJBACJ GKKMMAOKMFM(ABDDNLAJDKI GEDCEIDOKJL, int JMHKMOACHDG, bool AFNJDOHPKPO)
|
||||
{
|
||||
int num = 0;
|
||||
if ((this.useHoldPower ? 1 : 0) == num)
|
||||
{
|
||||
this.minPowerHoldDuration = (float)num;
|
||||
}
|
||||
float num2 = this.minPowerHoldDuration;
|
||||
float num3 = this.maxPowerHoldDuration;
|
||||
bool lockTouchImmediately = this.lockTouchImmediately;
|
||||
bool greedilyConsumeExistingTouch = this.greedilyConsumeExistingTouch;
|
||||
bool ignoreExtraFingers = this.ignoreExtraFingers;
|
||||
int requiredFingerCount = this.requiredFingerCount;
|
||||
Action action = new Action(this.onNeutralRelease.Invoke);
|
||||
HCHOCGBEOCL hchocgbeocl;
|
||||
hchocgbeocl.HLIHDFGCLGG += action;
|
||||
Action action2 = new Action(this.onSwipeNotNeutral.Invoke);
|
||||
hchocgbeocl.NFMOFLLBLDE += action2;
|
||||
Action action3 = new Action(this.onSwipeStart.Invoke);
|
||||
hchocgbeocl.KLGPOONOHCM += action3;
|
||||
Action action4 = new Action(this.onSwipeEnd.Invoke);
|
||||
hchocgbeocl.OOCBPELOPCB += action4;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600F567 RID: 62823 RVA: 0x0039F10C File Offset: 0x0039D30C
|
||||
[Token(Token = "0x600F567")]
|
||||
[Address(RVA = "0x10D1EB0", Offset = "0x10D08B0", VA = "0x1810D1EB0")]
|
||||
public TouchSwipeRegion()
|
||||
{
|
||||
this.ignoreExtraFingers = true;
|
||||
this.requiredFingerCount = (int)((ulong)1L);
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400A47B RID: 42107
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x100")]
|
||||
[Token(Token = "0x400A47B")]
|
||||
[SerializeField]
|
||||
[Tooltip("Enables calculating a \"power\" for this input based on how long the user holds the swipe button down before releasing")]
|
||||
[Header("Touch Swipe Region")]
|
||||
private bool useHoldPower;
|
||||
|
||||
// Token: 0x0400A47C RID: 42108
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x104")]
|
||||
[Token(Token = "0x400A47C")]
|
||||
[SerializeField]
|
||||
[Tooltip("Holding less than this time will generate minimum power")]
|
||||
[OMAIFIIBMNL("useHoldPower")]
|
||||
private float minPowerHoldDuration;
|
||||
|
||||
// Token: 0x0400A47D RID: 42109
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x108")]
|
||||
[Token(Token = "0x400A47D")]
|
||||
[SerializeField]
|
||||
[Tooltip("Holding this time or longer will generate maximum power")]
|
||||
[OMAIFIIBMNL("useHoldPower")]
|
||||
private float maxPowerHoldDuration;
|
||||
|
||||
// Token: 0x0400A47E RID: 42110
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x110")]
|
||||
[Token(Token = "0x400A47E")]
|
||||
[SerializeField]
|
||||
private UnityEvent onNeutralRelease;
|
||||
|
||||
// Token: 0x0400A47F RID: 42111
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x118")]
|
||||
[Token(Token = "0x400A47F")]
|
||||
[SerializeField]
|
||||
private UnityEvent onSwipeNotNeutral;
|
||||
|
||||
// Token: 0x0400A480 RID: 42112
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x120")]
|
||||
[Token(Token = "0x400A480")]
|
||||
[SerializeField]
|
||||
private UnityEvent onSwipeStart;
|
||||
|
||||
// Token: 0x0400A481 RID: 42113
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x128")]
|
||||
[Token(Token = "0x400A481")]
|
||||
[SerializeField]
|
||||
private UnityEvent onSwipeEnd;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user