90 lines
5.2 KiB
C#
90 lines
5.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace AmplifyColor
|
|
{
|
|
// Token: 0x0200062A RID: 1578
|
|
[Token(Token = "0x200062A")]
|
|
[Serializable]
|
|
public class VolumeEffectContainer
|
|
{
|
|
// Token: 0x06003173 RID: 12659 RVA: 0x000672A8 File Offset: 0x000654A8
|
|
[Token(Token = "0x6003173")]
|
|
[Address(RVA = "0x94ADB0", Offset = "0x9495B0", VA = "0x18094ADB0")]
|
|
public VolumeEffectContainer()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06003173)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void AmplifyColor.VolumeEffectContainer::.ctor()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; Block_0:; call:void(object::.ctor, ldloc:VolumeEffectContainer[exp:object](this)); stloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(var_0_0B, newobj:List`1[exp:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>](List`1::.ctor)); stfld:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(VolumeEffectContainer::volumes, ldloc:VolumeEffectContainer(this), ldloc:class [mscorlib]System.Collections.Generic.List`1<class AmplifyColor.VolumeEffect>(var_0_0B)); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
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 344
|
|
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 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06003174 RID: 12660 RVA: 0x000672C8 File Offset: 0x000654C8
|
|
[Token(Token = "0x6003174")]
|
|
[Address(RVA = "0x94A8A0", Offset = "0x9490A0", VA = "0x18094A8A0")]
|
|
public void AddColorEffect(AmplifyColorBase colorEffect)
|
|
{
|
|
VolumeEffect volumeEffect = this.FindVolumeEffect(colorEffect);
|
|
if (volumeEffect == 0)
|
|
{
|
|
VolumeEffect volumeEffect2 = new VolumeEffect(colorEffect);
|
|
this.volumes.Add(volumeEffect2);
|
|
volumeEffect2.UpdateVolume();
|
|
return;
|
|
}
|
|
volumeEffect.UpdateVolume();
|
|
}
|
|
|
|
// Token: 0x06003175 RID: 12661 RVA: 0x00067308 File Offset: 0x00065508
|
|
[Token(Token = "0x6003175")]
|
|
[Address(RVA = "0x94A960", Offset = "0x949160", VA = "0x18094A960")]
|
|
public VolumeEffect AddJustColorEffect(AmplifyColorBase colorEffect)
|
|
{
|
|
VolumeEffect volumeEffect = new VolumeEffect(colorEffect);
|
|
this.volumes.Add(volumeEffect);
|
|
return volumeEffect;
|
|
}
|
|
|
|
// Token: 0x06003176 RID: 12662 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6003176")]
|
|
[Address(RVA = "0x94A9F0", Offset = "0x9491F0", VA = "0x18094A9F0")]
|
|
public VolumeEffect FindVolumeEffect(AmplifyColorBase colorEffect)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06003177 RID: 12663 RVA: 0x00067330 File Offset: 0x00065530
|
|
[Token(Token = "0x6003177")]
|
|
[Address(RVA = "0x94AD50", Offset = "0x949550", VA = "0x18094AD50")]
|
|
public void RemoveVolumeEffect(VolumeEffect volume)
|
|
{
|
|
bool flag = this.volumes.Remove(volume);
|
|
}
|
|
|
|
// Token: 0x06003178 RID: 12664 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6003178")]
|
|
[Address(RVA = "0x94AC10", Offset = "0x949410", VA = "0x18094AC10")]
|
|
public AmplifyColorBase[] GetStoredEffects()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04003B52 RID: 15186
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4003B52")]
|
|
public List<VolumeEffect> volumes;
|
|
}
|
|
}
|