Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

117 lines
3.7 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Rendering;
using UnityEngine.UI;
namespace RecRoom
{
// Token: 0x02002152 RID: 8530
[Token(Token = "0x2002152")]
public class ImposterGraphicRaycaster : FastGraphicRaycaster
{
// Token: 0x0600DAF0 RID: 56048 RVA: 0x0032C6AC File Offset: 0x0032A8AC
[Token(Token = "0x600DAF0")]
[Address(RVA = "0x818080", Offset = "0x816E80", VA = "0x180818080", Slot = "6")]
protected override void Start()
{
base..ctor();
Renderer component = base.GetComponent<Renderer>();
this.CHEJPOIMMCK = component;
RenderPipelineManager.beginCameraRendering += new Action(this.OnBeginCameraRendering);
}
// Token: 0x0600DAF1 RID: 56049 RVA: 0x0032C6E0 File Offset: 0x0032A8E0
[Token(Token = "0x600DAF1")]
[Address(RVA = "0x817A10", Offset = "0x816810", VA = "0x180817A10", Slot = "8")]
protected override void OnDestroy()
{
RenderPipelineManager.beginCameraRendering -= new Action(this.OnBeginCameraRendering);
CachedViewManager imposterViewManager = this.ImposterViewManager;
int num = 0;
if (imposterViewManager != num)
{
CachedViewManager imposterViewManager2 = this.ImposterViewManager;
GameObject gameObject = base.gameObject;
imposterViewManager2.RemoveImposter(gameObject);
}
base..ctor();
}
// Token: 0x0600DAF2 RID: 56050 RVA: 0x0032C734 File Offset: 0x0032A934
[Token(Token = "0x600DAF2")]
[Address(RVA = "0x817930", Offset = "0x816730", VA = "0x180817930")]
public void OnBeginCameraRendering(ScriptableRenderContext LHOMKMINCHH, Camera KCLGLHFAOGA)
{
CachedViewManager imposterViewManager = this.ImposterViewManager;
int num = 0;
if (imposterViewManager != num)
{
Plane[] fbnkcfnlomk = this.FBNKCFNLOMK;
GeometryUtility.CalculateFrustumPlanes(KCLGLHFAOGA, fbnkcfnlomk);
Renderer chejpoimmck = this.CHEJPOIMMCK;
Plane[] fbnkcfnlomk2 = this.FBNKCFNLOMK;
bool flag;
if (flag)
{
this.ImposterViewManager.MarkForRender();
}
}
}
// Token: 0x0600DAF3 RID: 56051 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600DAF3")]
[Address(RVA = "0x817B00", Offset = "0x816900", VA = "0x180817B00", Slot = "17")]
public override void Raycast(PointerEventData OEKEOCOGKMG, List<RaycastResult> ANFBLDOJOFJ)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600DAF4 RID: 56052 RVA: 0x0032C788 File Offset: 0x0032A988
[Token(Token = "0x600DAF4")]
[Address(RVA = "0x818130", Offset = "0x816F30", VA = "0x180818130")]
public ImposterGraphicRaycaster()
{
Plane[] array = new Plane[6];
this.FBNKCFNLOMK = array;
List<Graphic> list = new List();
this.IMHJPBIJFNH = list;
this.JIPDMJPDMJC = (int)((ulong)4294967295L);
List<FastGraphicRaycaster.ENLOHLEGPKD> list2 = new List();
this.AMLALAGMOKL = list2;
Vector3[] array2 = new Vector3[4];
this.EGFNFIJOIMK = array2;
List<FastGraphicRaycaster.ENLOHLEGPKD> list3 = new List();
this.OKHJNLIFOPO = list3;
base..ctor();
}
// Token: 0x04008EB2 RID: 36530
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4008EB2")]
public CachedViewManager ImposterViewManager;
// Token: 0x04008EB3 RID: 36531
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4008EB3")]
private Collider OBPPBGCAAPM;
// Token: 0x04008EB4 RID: 36532
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4008EB4")]
public bool ignoresAllInput;
// Token: 0x04008EB5 RID: 36533
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x4008EB5")]
private Plane[] FBNKCFNLOMK;
// Token: 0x04008EB6 RID: 36534
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x4008EB6")]
private Renderer CHEJPOIMMCK;
}
}