109 lines
3.5 KiB
C#
109 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02001DA4 RID: 7588
|
|
[Token(Token = "0x2001DA4")]
|
|
[StructLayout(3)]
|
|
public class ImposterGraphicRaycaster : FastGraphicRaycaster
|
|
{
|
|
// Token: 0x0600CCA1 RID: 52385 RVA: 0x00309B80 File Offset: 0x00307D80
|
|
[Token(Token = "0x600CCA1")]
|
|
[Address(RVA = "0x10C7FD0", Offset = "0x10C69D0", VA = "0x1810C7FD0", Slot = "6")]
|
|
protected override void Start()
|
|
{
|
|
base..ctor();
|
|
Renderer component = base.GetComponent<Renderer>();
|
|
this.CHEJPOIMMCK = component;
|
|
RenderPipelineManager.beginCameraRendering += new Action(this.OnBeginCameraRendering);
|
|
}
|
|
|
|
// Token: 0x0600CCA2 RID: 52386 RVA: 0x00309BB4 File Offset: 0x00307DB4
|
|
[Token(Token = "0x600CCA2")]
|
|
[Address(RVA = "0x10C7960", Offset = "0x10C6360", VA = "0x1810C7960", 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: 0x0600CCA3 RID: 52387 RVA: 0x00309C08 File Offset: 0x00307E08
|
|
[Token(Token = "0x600CCA3")]
|
|
[Address(RVA = "0x10C7880", Offset = "0x10C6280", VA = "0x1810C7880")]
|
|
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: 0x0600CCA4 RID: 52388 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600CCA4")]
|
|
[Address(RVA = "0x10C7A50", Offset = "0x10C6450", VA = "0x1810C7A50", 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: 0x0600CCA5 RID: 52389 RVA: 0x00309C5C File Offset: 0x00307E5C
|
|
[Token(Token = "0x600CCA5")]
|
|
[Address(RVA = "0x10C8080", Offset = "0x10C6A80", VA = "0x1810C8080")]
|
|
public ImposterGraphicRaycaster()
|
|
{
|
|
Plane[] array = new Plane[6];
|
|
this.FBNKCFNLOMK = array;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x040089F2 RID: 35314
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x40089F2")]
|
|
public CachedViewManager ImposterViewManager;
|
|
|
|
// Token: 0x040089F3 RID: 35315
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x40089F3")]
|
|
private Collider OBPPBGCAAPM;
|
|
|
|
// Token: 0x040089F4 RID: 35316
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40089F4")]
|
|
public bool ignoresAllInput;
|
|
|
|
// Token: 0x040089F5 RID: 35317
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x40089F5")]
|
|
private Plane[] FBNKCFNLOMK;
|
|
|
|
// Token: 0x040089F6 RID: 35318
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x40089F6")]
|
|
private Renderer CHEJPOIMMCK;
|
|
}
|
|
}
|