209 lines
6.0 KiB
C#
209 lines
6.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom.Networking.RPC;
|
|
using RecRoom.Persistence;
|
|
|
|
namespace RecRoom.Core.Creation.Circuits
|
|
{
|
|
// Token: 0x02002C6F RID: 11375
|
|
[Token(Token = "0x2002C6F")]
|
|
[StructLayout(3)]
|
|
public class CircuitGroupManager : BaseBigDataNetworkingManager<IGEENOIHBEN>
|
|
{
|
|
// Token: 0x060140ED RID: 82157 RVA: 0x004D0D70 File Offset: 0x004CEF70
|
|
[Token(Token = "0x60140ED")]
|
|
[Address(RVA = "0x1CCB670", Offset = "0x1CCA070", VA = "0x181CCB670", Slot = "19")]
|
|
protected override bool DGNHPBGGLMJ(PDEKIHFJKHJ KACDIBJMJEM)
|
|
{
|
|
IGHGEPCFGJL cfkcgeecgjc = KACDIBJMJEM.CFKCGEECGJC;
|
|
if (cfkcgeecgjc == 0)
|
|
{
|
|
}
|
|
return cfkcgeecgjc.MAFNFEHMLCH != 0;
|
|
}
|
|
|
|
// Token: 0x060140EE RID: 82158 RVA: 0x004D0D9C File Offset: 0x004CEF9C
|
|
[Token(Token = "0x60140EE")]
|
|
[Address(RVA = "0x1CCB6B0", Offset = "0x1CCA0B0", VA = "0x181CCB6B0", Slot = "15")]
|
|
protected override IGEENOIHBEN HJPHHANPEDE()
|
|
{
|
|
int num;
|
|
IGEENOIHBEN igeenoihben;
|
|
do
|
|
{
|
|
num = 0;
|
|
bool flag = !string.IsNullOrEmpty(NetworkedSingletonMonoBehaviour.ONCPNMDGGKG.DGKBJDOJGJO);
|
|
igeenoihben = new IGEENOIHBEN();
|
|
List<CircuitGroup> allCircuitGroups = CircuitGroup.AllCircuitGroups;
|
|
List.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
while (enumerator == 0)
|
|
{
|
|
}
|
|
IGEENOIHBEN.AKOCKBJFJOL.PCECDKNIGDC pcecdknigdc = new IGEENOIHBEN.AKOCKBJFJOL.PCECDKNIGDC();
|
|
PhotonView photonView;
|
|
int viewIdField = photonView.viewIdField;
|
|
pcecdknigdc.NNNGLLGCGGD = viewIdField;
|
|
bool flag2;
|
|
if (flag && flag2)
|
|
{
|
|
pcecdknigdc.KEJIBJKBCPC = true;
|
|
}
|
|
IGHGEPCFGJL ighgepcfgjl;
|
|
pcecdknigdc.ONMEFHFCOGF = ighgepcfgjl;
|
|
igeenoihben.EJCLGDHLELF.Add(pcecdknigdc);
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return igeenoihben;
|
|
}
|
|
|
|
// Token: 0x060140EF RID: 82159 RVA: 0x004D0E48 File Offset: 0x004CF048
|
|
[Token(Token = "0x60140EF")]
|
|
[Address(RVA = "0x1CCB080", Offset = "0x1CC9A80", VA = "0x181CCB080", Slot = "20")]
|
|
protected override void BHCDELJHHHG(COINPCHOMPP HDJKJMGKPIM, DBFIJENOPDA KGADGOFNJDC, IGEENOIHBEN BMJFPFPNMJL, Dictionary<Guid, PDEKIHFJKHJ> KMONPDHBAPE)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
Dictionary<CircuitGroup, CircuitGroupManager.MBIJKFMAMHK> dictionary = new Dictionary();
|
|
IEnumerator<IGEENOIHBEN.AKOCKBJFJOL.PCECDKNIGDC> enumerator = BMJFPFPNMJL.EJCLGDHLELF.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
if (num < enumerator)
|
|
{
|
|
num += num;
|
|
if (num == enumerator)
|
|
{
|
|
goto IL_60;
|
|
}
|
|
num++;
|
|
}
|
|
int num2 = 0;
|
|
PhotonView photonView;
|
|
if (!(photonView != num2))
|
|
{
|
|
continue;
|
|
}
|
|
CircuitGroup circuitGroup = photonView.GetComponent<CircuitGroup>();
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
if (!(circuitGroup != num4))
|
|
{
|
|
continue;
|
|
}
|
|
int num5 = 0;
|
|
dictionary.Add(circuitGroup, num3);
|
|
IL_60:
|
|
circuitGroup += circuitGroup;
|
|
num5 += 19;
|
|
PersistenceView persistenceView = circuitGroup.persistenceView;
|
|
int num6 = 0;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
goto IL_D3;
|
|
}
|
|
dictionary.Add(circuitGroup, num6);
|
|
}
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
Dictionary.Enumerator enumerator2;
|
|
if ((num == -1 || enumerator2 != 0) && num != 0)
|
|
{
|
|
goto IL_103;
|
|
}
|
|
num++;
|
|
Dictionary.Enumerator enumerator3;
|
|
if ((num == -1 || enumerator3 != 0) && num != 0)
|
|
{
|
|
goto IL_109;
|
|
}
|
|
num++;
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_D3:
|
|
Exception ex = new Exception("Failed to load room data.");
|
|
throw new NullReferenceException();
|
|
IL_103:
|
|
throw new NullReferenceException();
|
|
IL_109:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060140F0 RID: 82160 RVA: 0x004D0F64 File Offset: 0x004CF164
|
|
[Token(Token = "0x60140F0")]
|
|
[Address(RVA = "0x1CCB030", Offset = "0x1CC9A30", VA = "0x181CCB030", Slot = "16")]
|
|
protected override bool ALBKONKHHOL(IGEENOIHBEN BMJFPFPNMJL)
|
|
{
|
|
bool flag;
|
|
return BMJFPFPNMJL == 0 || BMJFPFPNMJL.EJCLGDHLELF == 0 || flag;
|
|
}
|
|
|
|
// Token: 0x060140F1 RID: 82161 RVA: 0x004D0F84 File Offset: 0x004CF184
|
|
[Token(Token = "0x60140F1")]
|
|
[Address(RVA = "0x1CCBA40", Offset = "0x1CCA440", VA = "0x181CCBA40", Slot = "17")]
|
|
protected override void MPAIIGKHDLC(IGEENOIHBEN BMJFPFPNMJL)
|
|
{
|
|
PhotonView photonView = base.photonView;
|
|
RPCActions.RPCAction<IGEENOIHBEN> rpcaction = new RPCActions.RPCAction(this.RpcDeserializeCircuitGroups);
|
|
photonView.RpcOthers<IGEENOIHBEN>(rpcaction, BMJFPFPNMJL);
|
|
}
|
|
|
|
// Token: 0x060140F2 RID: 82162 RVA: 0x004D0FB4 File Offset: 0x004CF1B4
|
|
[Token(Token = "0x60140F2")]
|
|
[Address(RVA = "0x1CCB980", Offset = "0x1CCA380", VA = "0x181CCB980", Slot = "18")]
|
|
protected override void KCKMLILMFHM(IGEENOIHBEN BMJFPFPNMJL, Photon.Realtime.Player IEKDDPPNFPF)
|
|
{
|
|
PhotonView photonView = base.photonView;
|
|
RPCActions.RPCAction<IGEENOIHBEN> rpcaction = new RPCActions.RPCAction(this.RpcDeserializeCircuitGroups);
|
|
photonView.RpcPlayer<IGEENOIHBEN>(IEKDDPPNFPF, rpcaction, BMJFPFPNMJL);
|
|
}
|
|
|
|
// Token: 0x060140F3 RID: 82163 RVA: 0x004D0FE4 File Offset: 0x004CF1E4
|
|
[Token(Token = "0x60140F3")]
|
|
[Address(RVA = "0x1CCBAE0", Offset = "0x1CCA4E0", VA = "0x181CCBAE0")]
|
|
[PunRPC]
|
|
private void RpcDeserializeCircuitGroups(IGEENOIHBEN BMJFPFPNMJL)
|
|
{
|
|
base.BFKPJHCDHBA(BMJFPFPNMJL);
|
|
}
|
|
|
|
// Token: 0x060140F4 RID: 82164 RVA: 0x004D0FF8 File Offset: 0x004CF1F8
|
|
[Token(Token = "0x60140F4")]
|
|
[Address(RVA = "0x1CCBB30", Offset = "0x1CCA530", VA = "0x181CCBB30")]
|
|
public CircuitGroupManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x02002C70 RID: 11376
|
|
[Token(Token = "0x2002C70")]
|
|
private struct MBIJKFMAMHK
|
|
{
|
|
// Token: 0x0400D7AC RID: 55212
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400D7AC")]
|
|
public IGHGEPCFGJL ABADFLCBFIJ;
|
|
|
|
// Token: 0x0400D7AD RID: 55213
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x400D7AD")]
|
|
public bool KEHECPKKJPN;
|
|
}
|
|
}
|
|
}
|