a
This commit is contained in:
@@ -0,0 +1,282 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.Rendering;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
// Token: 0x02000231 RID: 561
|
||||
[Token(Token = "0x2000231")]
|
||||
public class ChipFunctionHeader : MonoBehaviour
|
||||
{
|
||||
// Token: 0x17000283 RID: 643
|
||||
// (get) Token: 0x0600111E RID: 4382 RVA: 0x0004A1A0 File Offset: 0x000483A0
|
||||
[Token(Token = "0x17000283")]
|
||||
public float ALIFDBHDKBG
|
||||
{
|
||||
[Token(Token = "0x600111E")]
|
||||
[Address(RVA = "0x145C5F0", Offset = "0x145B3F0", VA = "0x18145C5F0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600111E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single ChipFunctionHeader::get_RequiredWidth()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:float32(var_0_0B, call:float32(BNIKNNLCAEL::CCOFEOGJKLF, ldfld:TextMeshPro(ChipFunctionHeader::_text, ldloc:ChipFunctionHeader(this))))
|
||||
stloc:Vector2(var_1_12, ldfld:Vector2(ChipFunctionHeader::_padding, ldloc:ChipFunctionHeader(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 1660
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000284 RID: 644
|
||||
// (get) Token: 0x0600111F RID: 4383 RVA: 0x0004A1C0 File Offset: 0x000483C0
|
||||
[Token(Token = "0x17000284")]
|
||||
public float HHPCFLNPJLB
|
||||
{
|
||||
[Token(Token = "0x600111F")]
|
||||
[Address(RVA = "0x145C5C0", Offset = "0x145B3C0", VA = "0x18145C5C0")]
|
||||
get
|
||||
{
|
||||
return this._text.ODOBILEGOMN();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001120 RID: 4384 RVA: 0x0004A1D8 File Offset: 0x000483D8
|
||||
[Token(Token = "0x6001120")]
|
||||
[Address(RVA = "0x145BE60", Offset = "0x145AC60", VA = "0x18145BE60")]
|
||||
public void SetName(string MMBOKOLAJFH)
|
||||
{
|
||||
this._text.RecalculateMasking();
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
string text = this._text.text;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000285 RID: 645
|
||||
// (get) Token: 0x06001121 RID: 4385 RVA: 0x0004A208 File Offset: 0x00048408
|
||||
[Token(Token = "0x17000285")]
|
||||
private MaterialPropertyBlock DNEAHNPHLLL
|
||||
{
|
||||
[Token(Token = "0x6001121")]
|
||||
[Address(RVA = "0x145B9F0", Offset = "0x145A7F0", VA = "0x18145B9F0")]
|
||||
get
|
||||
{
|
||||
MaterialPropertyBlock ldnikbnefab = this.LDNIKBNEFAB;
|
||||
if (ldnikbnefab == 0)
|
||||
{
|
||||
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
|
||||
this.LDNIKBNEFAB = materialPropertyBlock;
|
||||
}
|
||||
return ldnikbnefab;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001122 RID: 4386 RVA: 0x0004A230 File Offset: 0x00048430
|
||||
[Token(Token = "0x6001122")]
|
||||
[Address(RVA = "0x145BA50", Offset = "0x145A850", VA = "0x18145BA50")]
|
||||
private static Mesh NDGLHJFFNKK(Mesh DIEPOPNJNCO)
|
||||
{
|
||||
int num = 0;
|
||||
if (DIEPOPNJNCO == num)
|
||||
{
|
||||
bool flag = ChipFunctionHeader.MBNHMEKAGIE.Remove(DIEPOPNJNCO);
|
||||
}
|
||||
Dictionary<Mesh, Mesh> mbnhmekagie = ChipFunctionHeader.MBNHMEKAGIE;
|
||||
bool flag2;
|
||||
Mesh mesh;
|
||||
if (flag2)
|
||||
{
|
||||
mesh = global::UnityEngine.Object.Instantiate<Mesh>(DIEPOPNJNCO);
|
||||
ChipFunctionHeader.MBNHMEKAGIE[DIEPOPNJNCO] = mesh;
|
||||
}
|
||||
return mesh;
|
||||
}
|
||||
|
||||
// Token: 0x06001123 RID: 4387 RVA: 0x0004A280 File Offset: 0x00048480
|
||||
[Token(Token = "0x6001123")]
|
||||
[Address(RVA = "0x145BED0", Offset = "0x145ACD0", VA = "0x18145BED0")]
|
||||
public void SetWidth(float HFNDPDFBLPA)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Mesh mesh = this._meshes[0];
|
||||
float num2 = this._text.ODOBILEGOMN();
|
||||
float y = this._padding.y;
|
||||
float num3 = this._text.ODOBILEGOMN();
|
||||
int num4 = 0;
|
||||
this.positiveOffset.z = (float)num4;
|
||||
int num5 = 0;
|
||||
this.negativeOffset.z = (float)num5;
|
||||
MaterialPropertyBlock ldnikbnefab = this.LDNIKBNEFAB;
|
||||
if (ldnikbnefab == 0)
|
||||
{
|
||||
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
|
||||
this.LDNIKBNEFAB = materialPropertyBlock;
|
||||
}
|
||||
int llkodmjmekf = PAMNDKEGFFG.LLKODMJMEKF;
|
||||
int num6 = 0;
|
||||
ldnikbnefab.SetVector(llkodmjmekf, num6);
|
||||
MaterialPropertyBlock materialPropertyBlock2;
|
||||
if (this.LDNIKBNEFAB == 0)
|
||||
{
|
||||
materialPropertyBlock2 = new MaterialPropertyBlock();
|
||||
this.LDNIKBNEFAB = materialPropertyBlock2;
|
||||
}
|
||||
int jlahcmbeghn = PAMNDKEGFFG.JLAHCMBEGHN;
|
||||
int num7 = 0;
|
||||
materialPropertyBlock2.SetVector(jlahcmbeghn, num7);
|
||||
MeshFilter[] componentsInChildren = this._lodGroup.GetComponentsInChildren<MeshFilter>();
|
||||
Mesh[] meshes = this._meshes;
|
||||
IEnumerable enumerable = componentsInChildren.APOIPHCBOOM(meshes);
|
||||
if (enumerable != 0)
|
||||
{
|
||||
if (num >= enumerable)
|
||||
{
|
||||
goto IL_EE;
|
||||
}
|
||||
num += num;
|
||||
if (num != enumerable)
|
||||
{
|
||||
num++;
|
||||
goto IL_EE;
|
||||
}
|
||||
IL_FF:
|
||||
MaterialPropertyBlock materialPropertyBlock3;
|
||||
materialPropertyBlock3 += materialPropertyBlock3;
|
||||
goto IL_106;
|
||||
IL_EE:
|
||||
materialPropertyBlock3 = this.DNEAHNPHLLL;
|
||||
MeshRenderer meshRenderer;
|
||||
meshRenderer.Internal_SetPropertyBlock(materialPropertyBlock3);
|
||||
goto IL_FF;
|
||||
}
|
||||
IL_106:
|
||||
if (enumerable != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x06001124 RID: 4388 RVA: 0x0004A3C0 File Offset: 0x000485C0
|
||||
[Token(Token = "0x6001124")]
|
||||
[Address(RVA = "0x145BC20", Offset = "0x145AA20", VA = "0x18145BC20")]
|
||||
public void RenderWorldFadeMask()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Renderer[] array = this.highlightRenderers;
|
||||
Func<Renderer, bool> <>9__18_ = ChipFunctionHeader.<>c.<>9__18_0;
|
||||
if (<>9__18_ == 0)
|
||||
{
|
||||
ChipFunctionHeader.<>c.<>9__18_0 = (Renderer r) => r.isVisible;
|
||||
}
|
||||
IEnumerable<Renderer> enumerable = Enumerable.Where<Renderer>(array, <>9__18_);
|
||||
if (enumerable != 0)
|
||||
{
|
||||
if (num >= enumerable)
|
||||
{
|
||||
goto IL_44;
|
||||
}
|
||||
num += num;
|
||||
if (num != enumerable)
|
||||
{
|
||||
num++;
|
||||
goto IL_44;
|
||||
}
|
||||
IL_4B:
|
||||
num += 19;
|
||||
goto IL_50;
|
||||
IL_44:
|
||||
WorldFadeRendererEffect.RenderCornerMoveMask(num, 1);
|
||||
goto IL_4B;
|
||||
}
|
||||
IL_50:
|
||||
if (enumerable != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x06001125 RID: 4389 RVA: 0x0004A42C File Offset: 0x0004862C
|
||||
[Token(Token = "0x6001125")]
|
||||
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
||||
public ChipFunctionHeader()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000D9F RID: 3487
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000D9F")]
|
||||
[SerializeField]
|
||||
[FormerlySerializedAs("text")]
|
||||
private TextMeshPro _text;
|
||||
|
||||
// Token: 0x04000DA0 RID: 3488
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000DA0")]
|
||||
[SerializeField]
|
||||
[FormerlySerializedAs("padding")]
|
||||
private Vector2 _padding;
|
||||
|
||||
// Token: 0x04000DA1 RID: 3489
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000DA1")]
|
||||
[SerializeField]
|
||||
private Mesh[] _meshes;
|
||||
|
||||
// Token: 0x04000DA2 RID: 3490
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000DA2")]
|
||||
[SerializeField]
|
||||
private GameObject _lodGroup;
|
||||
|
||||
// Token: 0x04000DA3 RID: 3491
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000DA3")]
|
||||
[SerializeField]
|
||||
private Renderer[] highlightRenderers;
|
||||
|
||||
// Token: 0x04000DA4 RID: 3492
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4000DA4")]
|
||||
private MaterialPropertyBlock LDNIKBNEFAB;
|
||||
|
||||
// Token: 0x04000DA5 RID: 3493
|
||||
[Token(Token = "0x4000DA5")]
|
||||
private static readonly Dictionary<Mesh, Mesh> MBNHMEKAGIE = new Dictionary();
|
||||
|
||||
// Token: 0x04000DA6 RID: 3494
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4000DA6")]
|
||||
[SerializeField]
|
||||
private Vector3 positiveOffset;
|
||||
|
||||
// Token: 0x04000DA7 RID: 3495
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4000DA7")]
|
||||
[SerializeField]
|
||||
private Vector3 negativeOffset;
|
||||
}
|
||||
Reference in New Issue
Block a user