oh dear
This commit is contained in:
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Activities.StuntRunner
|
||||
{
|
||||
// Token: 0x02002BBD RID: 11197
|
||||
[Token(Token = "0x2002BBD")]
|
||||
public class RaceStartLight : MonoBehaviour
|
||||
{
|
||||
// Token: 0x17003489 RID: 13449
|
||||
// (get) Token: 0x06012D81 RID: 77185 RVA: 0x004560D8 File Offset: 0x004542D8
|
||||
// (set) Token: 0x06012D82 RID: 77186 RVA: 0x00456100 File Offset: 0x00454300
|
||||
[Token(Token = "0x17003489")]
|
||||
public float DBILBFKMACJ
|
||||
{
|
||||
[Token(Token = "0x6012D81")]
|
||||
[Address(RVA = "0xDD6970", Offset = "0xDD5770", VA = "0x180DD6970")]
|
||||
get
|
||||
{
|
||||
MaterialPropertyBlock mdioohgplof = this.MDIOOHGPLOF;
|
||||
int ceiapjcdfdg = this.CEIAPJCDFDG;
|
||||
return mdioohgplof.GetFloatImpl(ceiapjcdfdg);
|
||||
}
|
||||
[Token(Token = "0x6012D82")]
|
||||
[Address(RVA = "0xDD6AA0", Offset = "0xDD58A0", VA = "0x180DD6AA0")]
|
||||
set
|
||||
{
|
||||
MaterialPropertyBlock mdioohgplof = this.MDIOOHGPLOF;
|
||||
int ceiapjcdfdg = this.CEIAPJCDFDG;
|
||||
mdioohgplof.SetFloatImpl(ceiapjcdfdg, value);
|
||||
Renderer lightRenderer = this._lightRenderer;
|
||||
MaterialPropertyBlock mdioohgplof2 = this.MDIOOHGPLOF;
|
||||
lightRenderer.Internal_SetPropertyBlock(mdioohgplof2);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700348A RID: 13450
|
||||
// (get) Token: 0x06012D83 RID: 77187 RVA: 0x00456140 File Offset: 0x00454340
|
||||
[Token(Token = "0x1700348A")]
|
||||
public float MNAGNABBCLJ
|
||||
{
|
||||
[Token(Token = "0x6012D83")]
|
||||
[Address(RVA = "0xDD69A0", Offset = "0xDD57A0", VA = "0x180DD69A0")]
|
||||
get
|
||||
{
|
||||
RaceStartLight.LightingAnimationStop[] stops = this._stops;
|
||||
Func<RaceStartLight.LightingAnimationStop, float> <>9__11_ = RaceStartLight.<>c.<>9__11_0;
|
||||
if (<>9__11_ == 0)
|
||||
{
|
||||
RaceStartLight.<>c.<>9__11_0 = (RaceStartLight.LightingAnimationStop s) => s.AnimateInTime;
|
||||
}
|
||||
return Enumerable.Sum(Enumerable.Select<RaceStartLight.LightingAnimationStop, float>(stops, <>9__11_));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012D84 RID: 77188 RVA: 0x00456180 File Offset: 0x00454380
|
||||
[Token(Token = "0x6012D84")]
|
||||
[Address(RVA = "0xDD6840", Offset = "0xDD5640", VA = "0x180DD6840")]
|
||||
public void Play()
|
||||
{
|
||||
if (this.NEDBBMCJGMC != 0)
|
||||
{
|
||||
}
|
||||
Scheduler instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
||||
RaceStartLight.KGHJOBKCFFE kghjobkcffe;
|
||||
kghjobkcffe.System.IDisposable.Dispose();
|
||||
kghjobkcffe.<>1__state = (int)((ulong)0L);
|
||||
kghjobkcffe.<>4__this = this;
|
||||
KFBABPAPIMB kfbabpapimb = instance.Run(kghjobkcffe);
|
||||
this.NEDBBMCJGMC = kfbabpapimb;
|
||||
}
|
||||
|
||||
// Token: 0x06012D85 RID: 77189 RVA: 0x004561C8 File Offset: 0x004543C8
|
||||
[Token(Token = "0x6012D85")]
|
||||
[Address(RVA = "0xDD67F0", Offset = "0xDD55F0", VA = "0x180DD67F0")]
|
||||
private void OnEnable()
|
||||
{
|
||||
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
|
||||
this.MDIOOHGPLOF = materialPropertyBlock;
|
||||
}
|
||||
|
||||
// Token: 0x06012D86 RID: 77190 RVA: 0x004561E4 File Offset: 0x004543E4
|
||||
[Token(Token = "0x6012D86")]
|
||||
[Address(RVA = "0xDD6780", Offset = "0xDD5580", VA = "0x180DD6780")]
|
||||
private void OnDisable()
|
||||
{
|
||||
this._lightRenderer.NHHLALGBEPB();
|
||||
this.MDIOOHGPLOF = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x06012D87 RID: 77191 RVA: 0x00456208 File Offset: 0x00454408
|
||||
[Token(Token = "0x6012D87")]
|
||||
[Address(RVA = "0xDD6720", Offset = "0xDD5520", VA = "0x180DD6720")]
|
||||
private IEnumerator<KENFJGFMIPM> FDFNBBPPLAE()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06012D87)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> RecRoom.Activities.StuntRunner.RaceStartLight::FDFNBBPPLAE()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
call:void(KGHJOBKCFFE::System.IDisposable.Dispose, ldloc:KGHJOBKCFFE(var_0))
|
||||
stfld:int32(KGHJOBKCFFE::<>1__state, ldloc:KGHJOBKCFFE(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
||||
stfld:RaceStartLight(KGHJOBKCFFE::<>4__this, ldloc:KGHJOBKCFFE(var_0), ldloc:RaceStartLight(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: 0x06012D88 RID: 77192 RVA: 0x0045622C File Offset: 0x0045442C
|
||||
[Token(Token = "0x6012D88")]
|
||||
[Address(RVA = "0xDD6920", Offset = "0xDD5720", VA = "0x180DD6920")]
|
||||
public RaceStartLight()
|
||||
{
|
||||
int num = Shader.PropertyToID("_EmissionOffsetX");
|
||||
this.CEIAPJCDFDG = num;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400C34B RID: 49995
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C34B")]
|
||||
[SerializeField]
|
||||
private Renderer _lightRenderer;
|
||||
|
||||
// Token: 0x0400C34C RID: 49996
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400C34C")]
|
||||
private IDisposable NEDBBMCJGMC;
|
||||
|
||||
// Token: 0x0400C34D RID: 49997
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400C34D")]
|
||||
private int CEIAPJCDFDG;
|
||||
|
||||
// Token: 0x0400C34E RID: 49998
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400C34E")]
|
||||
private MaterialPropertyBlock MDIOOHGPLOF;
|
||||
|
||||
// Token: 0x0400C34F RID: 49999
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400C34F")]
|
||||
[SerializeField]
|
||||
private RaceStartLight.LightingAnimationStop[] _stops;
|
||||
|
||||
// Token: 0x0400C350 RID: 50000
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400C350")]
|
||||
[SerializeField]
|
||||
private AudioSource _audioSource;
|
||||
|
||||
// Token: 0x02002BBE RID: 11198
|
||||
[Token(Token = "0x2002BBE")]
|
||||
[Serializable]
|
||||
private class LightingAnimationStop
|
||||
{
|
||||
// Token: 0x06012D89 RID: 77193 RVA: 0x00456254 File Offset: 0x00454454
|
||||
[Token(Token = "0x6012D89")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public LightingAnimationStop()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400C351 RID: 50001
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400C351")]
|
||||
public float Position;
|
||||
|
||||
// Token: 0x0400C352 RID: 50002
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x400C352")]
|
||||
public float DelayTime;
|
||||
|
||||
// Token: 0x0400C353 RID: 50003
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C353")]
|
||||
public float AnimateInTime;
|
||||
|
||||
// Token: 0x0400C354 RID: 50004
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400C354")]
|
||||
public AudioClip Sound;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user