120 lines
3.6 KiB
C#
120 lines
3.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x020001AA RID: 426
|
|
[Token(Token = "0x20001AA")]
|
|
[StructLayout(3)]
|
|
public class Livezone : MonoBehaviour
|
|
{
|
|
// Token: 0x06000D51 RID: 3409 RVA: 0x0003A8A4 File Offset: 0x00038AA4
|
|
[Token(Token = "0x6000D51")]
|
|
[Address(RVA = "0x19872F0", Offset = "0x1985CF0", VA = "0x1819872F0")]
|
|
private void Awake()
|
|
{
|
|
Action<float> action = new Action(this.LALKLKJNJLN);
|
|
IDisposable disposable = ScheduledUpdateMonoBehaviourExtensions.UpdateAtRate(this, 1f, action);
|
|
}
|
|
|
|
// Token: 0x06000D52 RID: 3410 RVA: 0x0003A8CC File Offset: 0x00038ACC
|
|
[Token(Token = "0x6000D52")]
|
|
[Address(RVA = "0x1987730", Offset = "0x1986130", VA = "0x181987730")]
|
|
private void Start()
|
|
{
|
|
ActionEvent localPlayerSpawnEvent = Player.LocalPlayerSpawnEvent;
|
|
Action action = new Action(this.MIBEJNNLABD);
|
|
Player.LocalPlayerSpawnEvent = localPlayerSpawnEvent + action;
|
|
if (NOBCCPHLPNJ.MMICKFMMLJO && NOBCCPHLPNJ.ELPGKJIKMBE("LIVEZONES_DISABLED"))
|
|
{
|
|
int num = 0;
|
|
bool flag = NOBCCPHLPNJ.JGGKHJCBGLF("LIVEZONES_DISABLED", num) > 0;
|
|
this.JHFLHMANNIJ = flag;
|
|
int num2 = 0;
|
|
NOBCCPHLPNJ.CLOFMHGBPPA("LIVEZONES_DISABLED", num2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D53 RID: 3411 RVA: 0x0003A938 File Offset: 0x00038B38
|
|
[Token(Token = "0x6000D53")]
|
|
[Address(RVA = "0x1987670", Offset = "0x1986070", VA = "0x181987670")]
|
|
private void OnDestroy()
|
|
{
|
|
ActionEvent localPlayerSpawnEvent = Player.LocalPlayerSpawnEvent;
|
|
Action action = new Action(this.MIBEJNNLABD);
|
|
Player.LocalPlayerSpawnEvent = localPlayerSpawnEvent - action;
|
|
}
|
|
|
|
// Token: 0x06000D54 RID: 3412 RVA: 0x0003A964 File Offset: 0x00038B64
|
|
[Token(Token = "0x6000D54")]
|
|
[Address(RVA = "0x1987660", Offset = "0x1986060", VA = "0x181987660")]
|
|
private void MIBEJNNLABD()
|
|
{
|
|
this.DOLPGLJAOND = false;
|
|
}
|
|
|
|
// Token: 0x06000D55 RID: 3413 RVA: 0x0003A978 File Offset: 0x00038B78
|
|
[Token(Token = "0x6000D55")]
|
|
[Address(RVA = "0x1987360", Offset = "0x1985D60", VA = "0x181987360")]
|
|
private void LALKLKJNJLN(float POGAEJIEPIM)
|
|
{
|
|
if (!this.JHFLHMANNIJ && !this.DOLPGLJAOND)
|
|
{
|
|
SimpleVolume simpleVolume = this.livezoneVolume;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
SpawnPoint spawnPoint = this.spawnPointOverride;
|
|
int num = 0;
|
|
if (!(spawnPoint != num))
|
|
{
|
|
SceneSpawnManager spawnManager = RecRoomSceneManager.<OCDLBPHJMOP>k__BackingField.spawnManager;
|
|
int num2 = 0;
|
|
spawnManager.OGNBDGAKCBF(num2 != 0);
|
|
}
|
|
SpawnPoint spawnPoint2 = this.spawnPointOverride;
|
|
SpawnPoint spawnPoint3 = this.spawnPointOverride;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
SpawnPoint spawnPoint4 = this.spawnPointOverride;
|
|
this.DOLPGLJAOND = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000D56 RID: 3414 RVA: 0x0003AA00 File Offset: 0x00038C00
|
|
[Token(Token = "0x6000D56")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public Livezone()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000A63 RID: 2659
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000A63")]
|
|
[SerializeField]
|
|
public SimpleVolume livezoneVolume;
|
|
|
|
// Token: 0x04000A64 RID: 2660
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000A64")]
|
|
private bool DOLPGLJAOND;
|
|
|
|
// Token: 0x04000A65 RID: 2661
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x21")]
|
|
[Token(Token = "0x4000A65")]
|
|
private bool JHFLHMANNIJ;
|
|
|
|
// Token: 0x04000A66 RID: 2662
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000A66")]
|
|
[SerializeField]
|
|
private SpawnPoint spawnPointOverride;
|
|
|
|
// Token: 0x04000A67 RID: 2663
|
|
[Token(Token = "0x4000A67")]
|
|
private static string FNCGHHMNBII = "LIVEZONES_DISABLED";
|
|
}
|