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

283 lines
9.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using Cpp2IlInjected;
using RecRoom.Core.Rendering;
using TMPro;
using UnityEngine;
using UnityEngine.Serialization;
// Token: 0x02000232 RID: 562
[Token(Token = "0x2000232")]
public class ChipFunctionHeader : MonoBehaviour
{
// Token: 0x17000285 RID: 645
// (get) Token: 0x06001134 RID: 4404 RVA: 0x0004A6D8 File Offset: 0x000488D8
[Token(Token = "0x17000285")]
public float ALIFDBHDKBG
{
[Token(Token = "0x6001134")]
[Address(RVA = "0x1F371D0", Offset = "0x1F361D0", VA = "0x181F371D0")]
get
{
/*
An exception occurred when decompiling this method (06001134)
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 1663
*/;
}
}
// Token: 0x17000286 RID: 646
// (get) Token: 0x06001135 RID: 4405 RVA: 0x0004A6F8 File Offset: 0x000488F8
[Token(Token = "0x17000286")]
public float HHPCFLNPJLB
{
[Token(Token = "0x6001135")]
[Address(RVA = "0x1F371A0", Offset = "0x1F361A0", VA = "0x181F371A0")]
get
{
return this._text.ODOBILEGOMN();
}
}
// Token: 0x06001136 RID: 4406 RVA: 0x0004A710 File Offset: 0x00048910
[Token(Token = "0x6001136")]
[Address(RVA = "0x1F36A40", Offset = "0x1F35A40", VA = "0x181F36A40")]
public void SetName(string MMBOKOLAJFH)
{
this._text.RecalculateMasking();
bool flag;
if (flag)
{
string text = this._text.text;
}
}
// Token: 0x17000287 RID: 647
// (get) Token: 0x06001137 RID: 4407 RVA: 0x0004A740 File Offset: 0x00048940
[Token(Token = "0x17000287")]
private MaterialPropertyBlock DNEAHNPHLLL
{
[Token(Token = "0x6001137")]
[Address(RVA = "0x1F365D0", Offset = "0x1F355D0", VA = "0x181F365D0")]
get
{
MaterialPropertyBlock ldnikbnefab = this.LDNIKBNEFAB;
if (ldnikbnefab == 0)
{
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
this.LDNIKBNEFAB = materialPropertyBlock;
}
return ldnikbnefab;
}
}
// Token: 0x06001138 RID: 4408 RVA: 0x0004A768 File Offset: 0x00048968
[Token(Token = "0x6001138")]
[Address(RVA = "0x1F36630", Offset = "0x1F35630", VA = "0x181F36630")]
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: 0x06001139 RID: 4409 RVA: 0x0004A7B8 File Offset: 0x000489B8
[Token(Token = "0x6001139")]
[Address(RVA = "0x1F36AB0", Offset = "0x1F35AB0", VA = "0x181F36AB0")]
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: 0x0600113A RID: 4410 RVA: 0x0004A8F8 File Offset: 0x00048AF8
[Token(Token = "0x600113A")]
[Address(RVA = "0x1F36800", Offset = "0x1F35800", VA = "0x181F36800")]
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: 0x0600113B RID: 4411 RVA: 0x0004A964 File Offset: 0x00048B64
[Token(Token = "0x600113B")]
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
public ChipFunctionHeader()
{
}
// Token: 0x04000DBF RID: 3519
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000DBF")]
[SerializeField]
[FormerlySerializedAs("text")]
private TextMeshPro _text;
// Token: 0x04000DC0 RID: 3520
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000DC0")]
[SerializeField]
[FormerlySerializedAs("padding")]
private Vector2 _padding;
// Token: 0x04000DC1 RID: 3521
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000DC1")]
[SerializeField]
private Mesh[] _meshes;
// Token: 0x04000DC2 RID: 3522
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000DC2")]
[SerializeField]
private GameObject _lodGroup;
// Token: 0x04000DC3 RID: 3523
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000DC3")]
[SerializeField]
private Renderer[] highlightRenderers;
// Token: 0x04000DC4 RID: 3524
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000DC4")]
private MaterialPropertyBlock LDNIKBNEFAB;
// Token: 0x04000DC5 RID: 3525
[Token(Token = "0x4000DC5")]
private static readonly Dictionary<Mesh, Mesh> MBNHMEKAGIE = new Dictionary();
// Token: 0x04000DC6 RID: 3526
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000DC6")]
[SerializeField]
private Vector3 positiveOffset;
// Token: 0x04000DC7 RID: 3527
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x4000DC7")]
[SerializeField]
private Vector3 negativeOffset;
}