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

200 lines
8.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using Cpp2IlInjected;
using RecRoom.Core;
using UnityEngine;
namespace RecRoom.Activities.StuntRunner
{
// Token: 0x02002CA6 RID: 11430
[Token(Token = "0x2002CA6")]
public class RaceStartLight : MonoBehaviour
{
// Token: 0x1700353D RID: 13629
// (get) Token: 0x060131C2 RID: 78274 RVA: 0x0045FE8C File Offset: 0x0045E08C
// (set) Token: 0x060131C3 RID: 78275 RVA: 0x0045FEB4 File Offset: 0x0045E0B4
[Token(Token = "0x1700353D")]
public float DBILBFKMACJ
{
[Token(Token = "0x60131C2")]
[Address(RVA = "0x18E4EC0", Offset = "0x18E3EC0", VA = "0x1818E4EC0")]
get
{
MaterialPropertyBlock mdioohgplof = this.MDIOOHGPLOF;
int ceiapjcdfdg = this.CEIAPJCDFDG;
return mdioohgplof.GetFloatImpl(ceiapjcdfdg);
}
[Token(Token = "0x60131C3")]
[Address(RVA = "0x18E4FF0", Offset = "0x18E3FF0", VA = "0x1818E4FF0")]
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: 0x1700353E RID: 13630
// (get) Token: 0x060131C4 RID: 78276 RVA: 0x0045FEF4 File Offset: 0x0045E0F4
[Token(Token = "0x1700353E")]
public float MNAGNABBCLJ
{
[Token(Token = "0x60131C4")]
[Address(RVA = "0x18E4EF0", Offset = "0x18E3EF0", VA = "0x1818E4EF0")]
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: 0x060131C5 RID: 78277 RVA: 0x0045FF34 File Offset: 0x0045E134
[Token(Token = "0x60131C5")]
[Address(RVA = "0x18E4D90", Offset = "0x18E3D90", VA = "0x1818E4D90")]
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: 0x060131C6 RID: 78278 RVA: 0x0045FF7C File Offset: 0x0045E17C
[Token(Token = "0x60131C6")]
[Address(RVA = "0x18E4D40", Offset = "0x18E3D40", VA = "0x1818E4D40")]
private void OnEnable()
{
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
this.MDIOOHGPLOF = materialPropertyBlock;
}
// Token: 0x060131C7 RID: 78279 RVA: 0x0045FF98 File Offset: 0x0045E198
[Token(Token = "0x60131C7")]
[Address(RVA = "0x18E4CD0", Offset = "0x18E3CD0", VA = "0x1818E4CD0")]
private void OnDisable()
{
this._lightRenderer.NHHLALGBEPB();
this.MDIOOHGPLOF = (ulong)0L;
}
// Token: 0x060131C8 RID: 78280 RVA: 0x0045FFBC File Offset: 0x0045E1BC
[Token(Token = "0x60131C8")]
[Address(RVA = "0x18E4C70", Offset = "0x18E3C70", VA = "0x1818E4C70")]
private IEnumerator<KENFJGFMIPM> FDFNBBPPLAE()
{
/*
An exception occurred when decompiling this method (060131C8)
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: 0x060131C9 RID: 78281 RVA: 0x0045FFE0 File Offset: 0x0045E1E0
[Token(Token = "0x60131C9")]
[Address(RVA = "0x18E4E70", Offset = "0x18E3E70", VA = "0x1818E4E70")]
public RaceStartLight()
{
int num = Shader.PropertyToID("_EmissionOffsetX");
this.CEIAPJCDFDG = num;
base..ctor();
}
// Token: 0x0400C55F RID: 50527
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400C55F")]
[SerializeField]
private Renderer _lightRenderer;
// Token: 0x0400C560 RID: 50528
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400C560")]
private IDisposable NEDBBMCJGMC;
// Token: 0x0400C561 RID: 50529
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400C561")]
private int CEIAPJCDFDG;
// Token: 0x0400C562 RID: 50530
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400C562")]
private MaterialPropertyBlock MDIOOHGPLOF;
// Token: 0x0400C563 RID: 50531
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400C563")]
[SerializeField]
private RaceStartLight.LightingAnimationStop[] _stops;
// Token: 0x0400C564 RID: 50532
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400C564")]
[SerializeField]
private AudioSource _audioSource;
// Token: 0x02002CA7 RID: 11431
[Token(Token = "0x2002CA7")]
[Serializable]
private class LightingAnimationStop
{
// Token: 0x060131CA RID: 78282 RVA: 0x00460008 File Offset: 0x0045E208
[Token(Token = "0x60131CA")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public LightingAnimationStop()
{
}
// Token: 0x0400C565 RID: 50533
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400C565")]
public float Position;
// Token: 0x0400C566 RID: 50534
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x400C566")]
public float DelayTime;
// Token: 0x0400C567 RID: 50535
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400C567")]
public float AnimateInTime;
// Token: 0x0400C568 RID: 50536
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400C568")]
public AudioClip Sound;
}
}
}