This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,117 @@
using System;
using Cpp2IlInjected;
using RecRoom.Core.Creation;
using UnityEngine;
namespace RecRoom.Utils.Mesh
{
// Token: 0x020022D5 RID: 8917
[Token(Token = "0x20022D5")]
[ExecuteInEditMode]
public class InstanceColor : MonoBehaviour
{
// Token: 0x0600E2E6 RID: 58086 RVA: 0x003425F8 File Offset: 0x003407F8
[Token(Token = "0x600E2E6")]
[Address(RVA = "0x1C03FB0", Offset = "0x1C02FB0", VA = "0x181C03FB0")]
private void LJAEIJLMDHG()
{
if (this.renderers != (ulong)0L)
{
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
Renderer[] array = this.renderers;
int num = 0;
int length = array.Length;
if (num < length)
{
Renderer renderer = array[num];
renderer.Internal_GetPropertyBlock(materialPropertyBlock);
Color color = this.color;
int aifdgaeealp = InstanceColor.AIFDGAEEALP;
materialPropertyBlock.SetColor(aifdgaeealp, color);
renderer.Internal_SetPropertyBlock(materialPropertyBlock);
num++;
}
}
}
// Token: 0x0600E2E7 RID: 58087 RVA: 0x00342668 File Offset: 0x00340868
[Token(Token = "0x600E2E7")]
[Address(RVA = "0x1C03EE0", Offset = "0x1C02EE0", VA = "0x181C03EE0")]
private void EGMBBEJOAND()
{
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
Renderer[] array = this.renderers;
int num = 0;
int length = array.Length;
if (num < length)
{
Renderer renderer = array[num];
renderer.Internal_GetPropertyBlock(materialPropertyBlock);
materialPropertyBlock.Clear();
renderer.Internal_SetPropertyBlock(materialPropertyBlock);
num++;
}
}
// Token: 0x0600E2E8 RID: 58088 RVA: 0x003426B8 File Offset: 0x003408B8
[Token(Token = "0x600E2E8")]
[Address(RVA = "0x1C040F0", Offset = "0x1C030F0", VA = "0x181C040F0")]
private void Start()
{
if (Application.isPlaying)
{
SandboxColorable componentInParent = base.GetComponentInParent<SandboxColorable>();
int num = 0;
if (!(componentInParent != num))
{
if (this.renderers == (ulong)0L)
{
return;
}
MaterialPropertyBlock materialPropertyBlock = new MaterialPropertyBlock();
Renderer[] array = this.renderers;
int num2 = 0;
int length = array.Length;
if (num2 >= length)
{
return;
}
Renderer renderer = array[num2];
renderer.Internal_GetPropertyBlock(materialPropertyBlock);
Color color = this.color;
int aifdgaeealp = InstanceColor.AIFDGAEEALP;
materialPropertyBlock.SetColor(aifdgaeealp, color);
renderer.Internal_SetPropertyBlock(materialPropertyBlock);
num2++;
}
int num3 = 0;
base.enabled = num3 != 0;
Color color2 = this.color;
componentInParent.TrySetDefaultRGBColor(color2);
}
}
// Token: 0x0600E2E9 RID: 58089 RVA: 0x0034276C File Offset: 0x0034096C
[Token(Token = "0x600E2E9")]
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
public InstanceColor()
{
}
// Token: 0x04009288 RID: 37512
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009288")]
[SerializeField]
[HideInInspector]
private Color color;
// Token: 0x04009289 RID: 37513
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4009289")]
public Renderer[] renderers;
// Token: 0x0400928A RID: 37514
[Token(Token = "0x400928A")]
private static readonly int AIFDGAEEALP = Shader.PropertyToID("_InstanceColor");
}
}