185 lines
5.1 KiB
C#
185 lines
5.1 KiB
C#
using System;
|
|
using System.Linq;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000627 RID: 1575
|
|
[Token(Token = "0x2000627")]
|
|
public class OcclusionVolume : MonoBehaviour
|
|
{
|
|
// Token: 0x170007EB RID: 2027
|
|
// (get) Token: 0x06002DDB RID: 11739 RVA: 0x000BD234 File Offset: 0x000BB434
|
|
// (set) Token: 0x06002DDC RID: 11740 RVA: 0x000BD248 File Offset: 0x000BB448
|
|
[Token(Token = "0x170007EB")]
|
|
public bool ICECPIKHHIJ
|
|
{
|
|
[Token(Token = "0x6002DDB")]
|
|
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
|
|
get
|
|
{
|
|
return this.DPKNAEKAHCC;
|
|
}
|
|
[Token(Token = "0x6002DDC")]
|
|
[Address(RVA = "0x134F4B0", Offset = "0x134E2B0", VA = "0x18134F4B0")]
|
|
set
|
|
{
|
|
if (this.DPKNAEKAHCC != value)
|
|
{
|
|
if (this.occlusionPortals == (ulong)0L)
|
|
{
|
|
GameObject gameObject = base.gameObject;
|
|
Debug.LogError("Occlusion portals is null!", gameObject);
|
|
}
|
|
this.DPKNAEKAHCC = value;
|
|
if (!value)
|
|
{
|
|
}
|
|
Debug.Log(string.Format("{0} setting portals to {1}", this, "CLOSED"), this);
|
|
OcclusionPortal[] array = this.occlusionPortals;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
OcclusionPortal occlusionPortal = array[num];
|
|
if (this.occlusionPortals[num].gameObject.activeInHierarchy)
|
|
{
|
|
}
|
|
bool flag = (uint)1 != 0U;
|
|
occlusionPortal.open = flag;
|
|
OcclusionPortal[] array2 = this.occlusionPortals;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002DDD RID: 11741 RVA: 0x000BD2F8 File Offset: 0x000BB4F8
|
|
[Token(Token = "0x6002DDD")]
|
|
[Address(RVA = "0x134EEA0", Offset = "0x134DCA0", VA = "0x18134EEA0")]
|
|
private void Awake()
|
|
{
|
|
this.ICECPIKHHIJ = true;
|
|
OcclusionPortal[] array = this.occlusionPortals;
|
|
Func<OcclusionPortal, bool> <>9__7_ = OcclusionVolume.<>c.<>9__7_0;
|
|
if (<>9__7_ == 0)
|
|
{
|
|
OcclusionVolume.<>c.<>9__7_0 = delegate(OcclusionPortal _)
|
|
{
|
|
int num = 0;
|
|
return _ != num;
|
|
};
|
|
}
|
|
OcclusionPortal[] array2 = Enumerable.ToArray<OcclusionPortal>(Enumerable.Where<OcclusionPortal>(array, <>9__7_));
|
|
this.occlusionPortals = array2;
|
|
SimpleVolume[] array3 = this.volumes;
|
|
Func<SimpleVolume, bool> func;
|
|
if (OcclusionVolume.<>c.<>9__7_1 == 0)
|
|
{
|
|
func = delegate(SimpleVolume _)
|
|
{
|
|
int num2 = 0;
|
|
return _ != num2;
|
|
};
|
|
OcclusionVolume.<>c.<>9__7_1 = func;
|
|
}
|
|
SimpleVolume[] array4 = Enumerable.ToArray<SimpleVolume>(Enumerable.Where<SimpleVolume>(array3, func));
|
|
this.volumes = array4;
|
|
Action<float> action = new Action(this.GNIHDDGMOEB);
|
|
IDisposable disposable = ADIFCODGAML.ADIDJGEIJOH(this, action);
|
|
}
|
|
|
|
// Token: 0x06002DDE RID: 11742 RVA: 0x000BD3A0 File Offset: 0x000BB5A0
|
|
[Token(Token = "0x6002DDE")]
|
|
[Address(RVA = "0x134F180", Offset = "0x134DF80", VA = "0x18134F180")]
|
|
private void GNIHDDGMOEB(float POGAEJIEPIM)
|
|
{
|
|
bool flag = !this.JLIGNLPLDEO();
|
|
this.ICECPIKHHIJ = flag;
|
|
}
|
|
|
|
// Token: 0x06002DDF RID: 11743 RVA: 0x000BD3C0 File Offset: 0x000BB5C0
|
|
[Token(Token = "0x6002DDF")]
|
|
[Address(RVA = "0x134F250", Offset = "0x134E050", VA = "0x18134F250")]
|
|
private bool JLIGNLPLDEO()
|
|
{
|
|
Transform transform = Player.<EGKJPJKLEAI>k__BackingField.head.transform;
|
|
int num = 0;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
SimpleVolume[] array = this.volumes;
|
|
if (num < array.Length)
|
|
{
|
|
if (array[num].DOMABBDEAKJ == 0)
|
|
{
|
|
SimpleVolume[] array2 = this.volumes;
|
|
num++;
|
|
}
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002DE0 RID: 11744 RVA: 0x000BD424 File Offset: 0x000BB624
|
|
[Token(Token = "0x6002DE0")]
|
|
[Address(RVA = "0x134F0B0", Offset = "0x134DEB0", VA = "0x18134F0B0")]
|
|
private bool CEHEAPCPBLG(Vector3 KPLDEODOJID)
|
|
{
|
|
SimpleVolume[] array = this.volumes;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
SimpleVolume simpleVolume = array[num];
|
|
float z = KPLDEODOJID.z;
|
|
if (simpleVolume.DOMABBDEAKJ == 0)
|
|
{
|
|
SimpleVolume[] array2 = this.volumes;
|
|
num++;
|
|
}
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06002DE1 RID: 11745 RVA: 0x000BD474 File Offset: 0x000BB674
|
|
[Token(Token = "0x6002DE1")]
|
|
[Address(RVA = "0x134F450", Offset = "0x134E250", VA = "0x18134F450")]
|
|
public OcclusionVolume()
|
|
{
|
|
OcclusionPortal[] array = new OcclusionPortal[0];
|
|
this.occlusionPortals = array;
|
|
SimpleVolume[] array2 = new SimpleVolume[0];
|
|
this.volumes = array2;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x06002DE2 RID: 11746 RVA: 0x0000220F File Offset: 0x0000040F
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6002DE2")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
static OcclusionVolume()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04002577 RID: 9591
|
|
[Token(Token = "0x4002577")]
|
|
public static bool ForceOpen;
|
|
|
|
// Token: 0x04002578 RID: 9592
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002578")]
|
|
private bool DPKNAEKAHCC;
|
|
|
|
// Token: 0x04002579 RID: 9593
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002579")]
|
|
[SerializeField]
|
|
private OcclusionPortal[] occlusionPortals;
|
|
|
|
// Token: 0x0400257A RID: 9594
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400257A")]
|
|
[SerializeField]
|
|
private SimpleVolume[] volumes;
|
|
}
|