This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,119 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using RecRoom.Core.Creation;
using UnityEngine;
namespace RecRoom.Utils.Mesh
{
// Token: 0x0200203D RID: 8253
[Token(Token = "0x200203D")]
[ExecuteInEditMode]
[StructLayout(3)]
public class InstanceColor : MonoBehaviour
{
// Token: 0x0600E47A RID: 58490 RVA: 0x00363610 File Offset: 0x00361810
[Token(Token = "0x600E47A")]
[Address(RVA = "0x1325240", Offset = "0x1323C40", VA = "0x181325240")]
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: 0x0600E47B RID: 58491 RVA: 0x00363680 File Offset: 0x00361880
[Token(Token = "0x600E47B")]
[Address(RVA = "0x1325170", Offset = "0x1323B70", VA = "0x181325170")]
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: 0x0600E47C RID: 58492 RVA: 0x003636D0 File Offset: 0x003618D0
[Token(Token = "0x600E47C")]
[Address(RVA = "0x1325380", Offset = "0x1323D80", VA = "0x181325380")]
private void Start()
{
if (Application.isPlaying)
{
SandboxColorable component = base.GetComponent<SandboxColorable>();
int num = 0;
if (!(component != 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;
component.TrySetDefaultRGBColor(color2);
}
}
// Token: 0x0600E47D RID: 58493 RVA: 0x00363784 File Offset: 0x00361984
[Token(Token = "0x600E47D")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public InstanceColor()
{
}
// Token: 0x04009523 RID: 38179
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009523")]
[HideInInspector]
[SerializeField]
private Color color;
// Token: 0x04009524 RID: 38180
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4009524")]
public Renderer[] renderers;
// Token: 0x04009525 RID: 38181
[Token(Token = "0x4009525")]
private static readonly int AIFDGAEEALP = Shader.PropertyToID("_InstanceColor");
}
}