164 lines
5.1 KiB
C#
164 lines
5.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using CircuitsV2.Graph;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom;
|
|
using RecRoom.Networking.SynchronizedFields;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200023B RID: 571
|
|
[Token(Token = "0x200023B")]
|
|
[StructLayout(3)]
|
|
public class NFEFIENFLHK
|
|
{
|
|
// Token: 0x0600116D RID: 4461 RVA: 0x0004B9DC File Offset: 0x00049BDC
|
|
[Token(Token = "0x600116D")]
|
|
[Address(RVA = "0x138F5D0", Offset = "0x138DFD0", VA = "0x18138F5D0")]
|
|
public NFEFIENFLHK(IContextSynchronizedFieldFactory synchronizedFieldFactory)
|
|
{
|
|
Dictionary<Guid, FHJAFBMOIKC> dictionary = new Dictionary();
|
|
this.PNDNACCLFNM = dictionary;
|
|
base..ctor();
|
|
this.MFIAFEFEANN = synchronizedFieldFactory;
|
|
ActionEvent<Photon.Realtime.Player> onPhotonPlayerDisconnected = PhotonNetwork.OnPhotonPlayerDisconnected;
|
|
Action<Photon.Realtime.Player> action = new Action(this.HPHOOJLDKKM);
|
|
PhotonNetwork.OnPhotonPlayerDisconnected = onPhotonPlayerDisconnected + action;
|
|
}
|
|
|
|
// Token: 0x0600116E RID: 4462 RVA: 0x0004BA24 File Offset: 0x00049C24
|
|
[Token(Token = "0x600116E")]
|
|
[Address(RVA = "0x138F200", Offset = "0x138DC00", VA = "0x18138F200")]
|
|
public FHJAFBMOIKC BLCCLMPMKLF(CircuitGraphObject KCHDEPKPDHG)
|
|
{
|
|
NFEFIENFLHK.PMAPJEOGKOC pmapjeogkoc = new NFEFIENFLHK.PMAPJEOGKOC();
|
|
pmapjeogkoc.<>4__this = this;
|
|
if (KCHDEPKPDHG != 0)
|
|
{
|
|
Guid <Id>k__BackingField = KCHDEPKPDHG.<Id>k__BackingField;
|
|
pmapjeogkoc.id = <Id>k__BackingField;
|
|
Dictionary<Guid, FHJAFBMOIKC> pndnacclfnm = this.PNDNACCLFNM;
|
|
Guid <Id>k__BackingField2 = KCHDEPKPDHG.<Id>k__BackingField;
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
Guid id = pmapjeogkoc.id;
|
|
IContextSynchronizedFieldFactory mfiafefeann = this.MFIAFEFEANN;
|
|
string text = string.Format("COL_{0}", flag);
|
|
Action action = new Action(pmapjeogkoc.<GetCreationObjectLock>g__NotifyCreationContextObjectOnLockChange|1);
|
|
FHJAFBMOIKC fhjafbmoikc = new FHJAFBMOIKC(mfiafefeann, text, action);
|
|
pmapjeogkoc.existingLock = fhjafbmoikc;
|
|
Dictionary<Guid, FHJAFBMOIKC> pndnacclfnm2 = this.PNDNACCLFNM;
|
|
Guid id2 = pmapjeogkoc.id;
|
|
pndnacclfnm2.Add(id2, fhjafbmoikc);
|
|
Action action2 = new Action(pmapjeogkoc.<GetCreationObjectLock>g__OnCircuitObjectDestroyed|0);
|
|
KCHDEPKPDHG.OnDestroyed += action2;
|
|
}
|
|
return pmapjeogkoc.existingLock;
|
|
}
|
|
Debug.LogError("Attempting to fetch lock for null circuit object!");
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600116F RID: 4463 RVA: 0x0004BAF4 File Offset: 0x00049CF4
|
|
[Token(Token = "0x600116F")]
|
|
[Address(RVA = "0x138F410", Offset = "0x138DE10", VA = "0x18138F410")]
|
|
private void HPHOOJLDKKM(Photon.Realtime.Player AGIHAKFFCCD)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
if (!PhotonNetwork.IsMasterClient)
|
|
{
|
|
break;
|
|
}
|
|
int actorNumber = AGIHAKFFCCD.actorNumber;
|
|
Dictionary<Guid, FHJAFBMOIKC> pndnacclfnm = this.PNDNACCLFNM;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
int num2;
|
|
while (num2 != actorNumber)
|
|
{
|
|
}
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x04000DE5 RID: 3557
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000DE5")]
|
|
private readonly IContextSynchronizedFieldFactory MFIAFEFEANN;
|
|
|
|
// Token: 0x04000DE6 RID: 3558
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000DE6")]
|
|
private readonly Dictionary<Guid, FHJAFBMOIKC> PNDNACCLFNM;
|
|
|
|
// Token: 0x0200023C RID: 572
|
|
[Token(Token = "0x200023C")]
|
|
[CompilerGenerated]
|
|
private sealed class PMAPJEOGKOC
|
|
{
|
|
// Token: 0x06001170 RID: 4464 RVA: 0x0004BB34 File Offset: 0x00049D34
|
|
[Token(Token = "0x6001170")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public PMAPJEOGKOC()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001171 RID: 4465 RVA: 0x0004BB48 File Offset: 0x00049D48
|
|
[Token(Token = "0x6001171")]
|
|
[Address(RVA = "0x139D970", Offset = "0x139C370", VA = "0x18139D970")]
|
|
internal void <GetCreationObjectLock>g__OnCircuitObjectDestroyed|0()
|
|
{
|
|
Dictionary<Guid, FHJAFBMOIKC> pndnacclfnm = this.<>4__this.PNDNACCLFNM;
|
|
Guid guid = this.id;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
this.existingLock.Dispose();
|
|
Dictionary<Guid, FHJAFBMOIKC> pndnacclfnm2 = this.<>4__this.PNDNACCLFNM;
|
|
Guid guid2 = this.id;
|
|
bool flag2 = pndnacclfnm2.Remove(guid2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001172 RID: 4466 RVA: 0x0004BB9C File Offset: 0x00049D9C
|
|
[Token(Token = "0x6001172")]
|
|
[Address(RVA = "0x139D7E0", Offset = "0x139C1E0", VA = "0x18139D7E0")]
|
|
internal void <GetCreationObjectLock>g__NotifyCreationContextObjectOnLockChange|1()
|
|
{
|
|
!0 gcclejogcce = NetworkedSingletonMonoBehaviour.GCCLEJOGCCE;
|
|
Guid guid = this.id;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000DE7 RID: 3559
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000DE7")]
|
|
public NFEFIENFLHK <>4__this;
|
|
|
|
// Token: 0x04000DE8 RID: 3560
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000DE8")]
|
|
public Guid id;
|
|
|
|
// Token: 0x04000DE9 RID: 3561
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000DE9")]
|
|
public FHJAFBMOIKC existingLock;
|
|
}
|
|
}
|