202 lines
8.3 KiB
C#
202 lines
8.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.StuntRunner
|
|
{
|
|
// Token: 0x020026C8 RID: 9928
|
|
[Token(Token = "0x20026C8")]
|
|
[StructLayout(3)]
|
|
public class RaceStartLight : MonoBehaviour
|
|
{
|
|
// Token: 0x17002EC0 RID: 11968
|
|
// (get) Token: 0x060113BB RID: 70587 RVA: 0x00413698 File Offset: 0x00411898
|
|
// (set) Token: 0x060113BC RID: 70588 RVA: 0x004136C0 File Offset: 0x004118C0
|
|
[Token(Token = "0x17002EC0")]
|
|
public float DBILBFKMACJ
|
|
{
|
|
[Token(Token = "0x60113BB")]
|
|
[Address(RVA = "0x184B7F0", Offset = "0x184A1F0", VA = "0x18184B7F0")]
|
|
get
|
|
{
|
|
MaterialPropertyBlock mdioohgplof = this.MDIOOHGPLOF;
|
|
int ceiapjcdfdg = this.CEIAPJCDFDG;
|
|
return mdioohgplof.GetFloatImpl(ceiapjcdfdg);
|
|
}
|
|
[Token(Token = "0x60113BC")]
|
|
[Address(RVA = "0x184B920", Offset = "0x184A320", VA = "0x18184B920")]
|
|
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: 0x17002EC1 RID: 11969
|
|
// (get) Token: 0x060113BD RID: 70589 RVA: 0x00413700 File Offset: 0x00411900
|
|
[Token(Token = "0x17002EC1")]
|
|
public float MNAGNABBCLJ
|
|
{
|
|
[Token(Token = "0x60113BD")]
|
|
[Address(RVA = "0x184B820", Offset = "0x184A220", VA = "0x18184B820")]
|
|
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: 0x060113BE RID: 70590 RVA: 0x00413740 File Offset: 0x00411940
|
|
[Token(Token = "0x60113BE")]
|
|
[Address(RVA = "0x184B6C0", Offset = "0x184A0C0", VA = "0x18184B6C0")]
|
|
public void Play()
|
|
{
|
|
if (this.NEDBBMCJGMC != 0)
|
|
{
|
|
}
|
|
Scheduler instance = SingletonMonoBehaviour.Instance;
|
|
RaceStartLight.KGHJOBKCFFE kghjobkcffe;
|
|
kghjobkcffe.System.IDisposable.Dispose();
|
|
kghjobkcffe.<>1__state = (int)((ulong)0L);
|
|
kghjobkcffe.<>4__this = this;
|
|
ISchedulerPromise schedulerPromise = instance.Run(kghjobkcffe);
|
|
this.NEDBBMCJGMC = schedulerPromise;
|
|
}
|
|
|
|
// Token: 0x060113BF RID: 70591 RVA: 0x00413788 File Offset: 0x00411988
|
|
[Token(Token = "0x60113BF")]
|
|
[Address(RVA = "0x184B670", Offset = "0x184A070", VA = "0x18184B670")]
|
|
private void OnEnable()
|
|
{
|
|
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
|
|
this.MDIOOHGPLOF = materialPropertyBlock;
|
|
}
|
|
|
|
// Token: 0x060113C0 RID: 70592 RVA: 0x004137A4 File Offset: 0x004119A4
|
|
[Token(Token = "0x60113C0")]
|
|
[Address(RVA = "0x184B600", Offset = "0x184A000", VA = "0x18184B600")]
|
|
private void OnDisable()
|
|
{
|
|
this._lightRenderer.ClearMaterialProperty();
|
|
this.MDIOOHGPLOF = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x060113C1 RID: 70593 RVA: 0x004137C8 File Offset: 0x004119C8
|
|
[Token(Token = "0x60113C1")]
|
|
[Address(RVA = "0x184B5A0", Offset = "0x1849FA0", VA = "0x18184B5A0")]
|
|
private IEnumerator<ISchedule> FDFNBBPPLAE()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060113C1)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> 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: 0x060113C2 RID: 70594 RVA: 0x004137EC File Offset: 0x004119EC
|
|
[Token(Token = "0x60113C2")]
|
|
[Address(RVA = "0x184B7A0", Offset = "0x184A1A0", VA = "0x18184B7A0")]
|
|
public RaceStartLight()
|
|
{
|
|
int num = Shader.PropertyToID("_EmissionOffsetX");
|
|
this.CEIAPJCDFDG = num;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400B7D5 RID: 47061
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B7D5")]
|
|
[SerializeField]
|
|
private Renderer _lightRenderer;
|
|
|
|
// Token: 0x0400B7D6 RID: 47062
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400B7D6")]
|
|
private IDisposable NEDBBMCJGMC;
|
|
|
|
// Token: 0x0400B7D7 RID: 47063
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400B7D7")]
|
|
private int CEIAPJCDFDG;
|
|
|
|
// Token: 0x0400B7D8 RID: 47064
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400B7D8")]
|
|
private MaterialPropertyBlock MDIOOHGPLOF;
|
|
|
|
// Token: 0x0400B7D9 RID: 47065
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400B7D9")]
|
|
[SerializeField]
|
|
private RaceStartLight.LightingAnimationStop[] _stops;
|
|
|
|
// Token: 0x0400B7DA RID: 47066
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400B7DA")]
|
|
[SerializeField]
|
|
private AudioSource _audioSource;
|
|
|
|
// Token: 0x020026C9 RID: 9929
|
|
[Token(Token = "0x20026C9")]
|
|
[Serializable]
|
|
private class LightingAnimationStop
|
|
{
|
|
// Token: 0x060113C3 RID: 70595 RVA: 0x00413814 File Offset: 0x00411A14
|
|
[Token(Token = "0x60113C3")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public LightingAnimationStop()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400B7DB RID: 47067
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B7DB")]
|
|
public float Position;
|
|
|
|
// Token: 0x0400B7DC RID: 47068
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x400B7DC")]
|
|
public float DelayTime;
|
|
|
|
// Token: 0x0400B7DD RID: 47069
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B7DD")]
|
|
public float AnimateInTime;
|
|
|
|
// Token: 0x0400B7DE RID: 47070
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400B7DE")]
|
|
public AudioClip Sound;
|
|
}
|
|
}
|
|
}
|