This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,117 @@
using System;
using Cpp2IlInjected;
using RecRoom.Core.Creation;
using UnityEngine;
namespace RecRoom.Utils.Mesh
{
// Token: 0x020021F1 RID: 8689
[Token(Token = "0x20021F1")]
[ExecuteInEditMode]
public class InstanceColor : MonoBehaviour
{
// Token: 0x0600DEDA RID: 57050 RVA: 0x00339114 File Offset: 0x00337314
[Token(Token = "0x600DEDA")]
[Address(RVA = "0x100C160", Offset = "0x100AF60", VA = "0x18100C160")]
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: 0x0600DEDB RID: 57051 RVA: 0x00339184 File Offset: 0x00337384
[Token(Token = "0x600DEDB")]
[Address(RVA = "0x100C090", Offset = "0x100AE90", VA = "0x18100C090")]
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: 0x0600DEDC RID: 57052 RVA: 0x003391D4 File Offset: 0x003373D4
[Token(Token = "0x600DEDC")]
[Address(RVA = "0x100C2A0", Offset = "0x100B0A0", VA = "0x18100C2A0")]
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: 0x0600DEDD RID: 57053 RVA: 0x00339288 File Offset: 0x00337488
[Token(Token = "0x600DEDD")]
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
public InstanceColor()
{
}
// Token: 0x040090B5 RID: 37045
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40090B5")]
[SerializeField]
[HideInInspector]
private Color color;
// Token: 0x040090B6 RID: 37046
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40090B6")]
public Renderer[] renderers;
// Token: 0x040090B7 RID: 37047
[Token(Token = "0x40090B7")]
private static readonly int AIFDGAEEALP = Shader.PropertyToID("_InstanceColor");
}
}