254 lines
7.8 KiB
C#
254 lines
7.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Creation.SandboxGizmos
|
|
{
|
|
// Token: 0x02003328 RID: 13096
|
|
[Token(Token = "0x2003328")]
|
|
public class InfluencerGizmo : SandboxGizmo
|
|
{
|
|
// Token: 0x17003E82 RID: 16002
|
|
// (get) Token: 0x060169EA RID: 92650 RVA: 0x00547164 File Offset: 0x00545364
|
|
[Token(Token = "0x17003E82")]
|
|
public ConnectionPoint OIDBNNGDNHD
|
|
{
|
|
[Token(Token = "0x60169EA")]
|
|
[Address(RVA = "0x567CE0", Offset = "0x566AE0", VA = "0x180567CE0")]
|
|
get
|
|
{
|
|
return this.parentingConnectionPoint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003E83 RID: 16003
|
|
// (get) Token: 0x060169EB RID: 92651 RVA: 0x00547178 File Offset: 0x00545378
|
|
[Token(Token = "0x17003E83")]
|
|
public ConnectionPoint HBNLDFJMCED
|
|
{
|
|
[Token(Token = "0x60169EB")]
|
|
[Address(RVA = "0x44EC80", Offset = "0x44DA80", VA = "0x18044EC80")]
|
|
get
|
|
{
|
|
return this.influencingConnectionPoint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060169EC RID: 92652 RVA: 0x0054718C File Offset: 0x0054538C
|
|
[Token(Token = "0x60169EC")]
|
|
[Address(RVA = "0x12EA9D0", Offset = "0x12E97D0", VA = "0x1812EA9D0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
ConnectionPoint connectionPoint = this.influencingConnectionPoint;
|
|
int num = 0;
|
|
if (connectionPoint != num)
|
|
{
|
|
ConnectionPoint connectionPoint2 = this.influencingConnectionPoint;
|
|
ConnectionPoint.EEDEFGJKAJP eedefgjkajp = new ConnectionPoint.EEDEFGJKAJP(this.NMJJFELGGKM);
|
|
connectionPoint2.IMKGNMOOAIG += eedefgjkajp;
|
|
ConnectionPoint connectionPoint3 = this.influencingConnectionPoint;
|
|
ConnectionPoint.JFKNKMKCFBI jfknkmkcfbi = new ConnectionPoint.JFKNKMKCFBI(this.NDKKOGNAKCA);
|
|
connectionPoint3.PFACAJHLDON += jfknkmkcfbi;
|
|
}
|
|
ConnectionPoint connectionPoint4 = this.parentingConnectionPoint;
|
|
int num2 = 0;
|
|
if (connectionPoint4 != num2)
|
|
{
|
|
ConnectionPoint connectionPoint5 = this.parentingConnectionPoint;
|
|
ConnectionPoint.EEDEFGJKAJP eedefgjkajp2 = new ConnectionPoint.EEDEFGJKAJP(this.CBJACLPAKMC);
|
|
connectionPoint5.IMKGNMOOAIG += eedefgjkajp2;
|
|
ConnectionPoint connectionPoint6 = this.parentingConnectionPoint;
|
|
ConnectionPoint.JFKNKMKCFBI jfknkmkcfbi2 = new ConnectionPoint.JFKNKMKCFBI(this.LIGHGNJBAEB);
|
|
connectionPoint6.PFACAJHLDON += jfknkmkcfbi2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060169ED RID: 92653 RVA: 0x00547248 File Offset: 0x00545448
|
|
[Token(Token = "0x60169ED")]
|
|
[Address(RVA = "0x12EB520", Offset = "0x12EA320", VA = "0x1812EB520")]
|
|
private void NMJJFELGGKM(ConnectionPoint ODBAFIFNIDO, [Optional] ConnectionPoint.PGHEPJALOOK AFLPGGJMPOE)
|
|
{
|
|
int num;
|
|
if (base.OGIBLNIIHDK || !base.PBBJCLJPFMI.FNFNLDBILFE)
|
|
{
|
|
num = 0;
|
|
}
|
|
if (AFLPGGJMPOE != 0)
|
|
{
|
|
AGAJMBPABDL authority = base.KPBFAKFKDAF;
|
|
AFLPGGJMPOE((GBDECALBCOP)num, authority);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060169EE RID: 92654 RVA: 0x00547288 File Offset: 0x00545488
|
|
[Token(Token = "0x60169EE")]
|
|
[Address(RVA = "0x12EAB90", Offset = "0x12E9990", VA = "0x1812EAB90")]
|
|
private void CBJACLPAKMC(ConnectionPoint ODBAFIFNIDO, [Optional] ConnectionPoint.PGHEPJALOOK AFLPGGJMPOE)
|
|
{
|
|
int num;
|
|
if (base.OGIBLNIIHDK || !base.PBBJCLJPFMI.FNFNLDBILFE)
|
|
{
|
|
this._connectableTool.AuthorityUnparentThisConnectableFromOther();
|
|
num = 0;
|
|
}
|
|
if (AFLPGGJMPOE != 0)
|
|
{
|
|
AGAJMBPABDL authority = base.KPBFAKFKDAF;
|
|
AFLPGGJMPOE((GBDECALBCOP)num, authority);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060169EF RID: 92655 RVA: 0x005472D4 File Offset: 0x005454D4
|
|
[Token(Token = "0x60169EF")]
|
|
[Address(RVA = "0x12EAF50", Offset = "0x12E9D50", VA = "0x1812EAF50")]
|
|
private void NDKKOGNAKCA(ConnectionPoint HDPMJFANOPG, ConnectionPoint GFMAOEPEFKD, [Optional] ConnectionPoint.PGHEPJALOOK AFLPGGJMPOE)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if (HDPMJFANOPG != num2)
|
|
{
|
|
int num3 = 0;
|
|
if (GFMAOEPEFKD != num3)
|
|
{
|
|
GameObject gameObject = HDPMJFANOPG.gameObject;
|
|
GameObject gameObject2 = this.influencingConnectionPoint.gameObject;
|
|
if (!(gameObject == gameObject2))
|
|
{
|
|
MIGCNEPBKDG componentInParent = HDPMJFANOPG.GetComponentInParent<MIGCNEPBKDG>();
|
|
ConnectionPoint component = HDPMJFANOPG.GetComponent<ConnectionPoint>();
|
|
}
|
|
MIGCNEPBKDG componentInParent2 = GFMAOEPEFKD.GetComponentInParent<MIGCNEPBKDG>();
|
|
if (GFMAOEPEFKD.GetComponent<ConnectionPoint>() != 0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
int num4 = 0;
|
|
if (num != num4)
|
|
{
|
|
}
|
|
bool flag;
|
|
if (num != 0 && flag)
|
|
{
|
|
int num5 = 0;
|
|
bool flag2;
|
|
if (num != num5 && flag2)
|
|
{
|
|
if (!base.OGIBLNIIHDK && !base.PBBJCLJPFMI.FNFNLDBILFE && base.PBBJCLJPFMI.NHPPANGAKAP)
|
|
{
|
|
PhotonView photonView = base.JDHMIOJKLCK;
|
|
AGAJMBPABDL agajmbpabdl = KKPBCOOONNK.MDMMDPEKICF;
|
|
photonView.TransferOwnership(agajmbpabdl);
|
|
}
|
|
if (base.OGIBLNIIHDK)
|
|
{
|
|
if (this._connectableTool.childrenConnectables.Contains(num))
|
|
{
|
|
this._connectableTool.AuthorityUnparentOtherConnectableFromThis(num);
|
|
}
|
|
Transform targetTransform = base.PBBJCLJPFMI.rigidbodyEx.MDKDCJFEBJH;
|
|
Transform targetTransform2 = base.PBBJCLJPFMI.rigidbodyEx.MDKDCJFEBJH;
|
|
ConnectableTool connectableTool = this._connectableTool;
|
|
int num6 = 0;
|
|
connectableTool.AuthorityParentOtherConnectableToThis(1, num, num, num6, num6);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
}
|
|
if (AFLPGGJMPOE != 0)
|
|
{
|
|
int num7 = 0;
|
|
AFLPGGJMPOE((GBDECALBCOP)((uint)2), num7);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060169F0 RID: 92656 RVA: 0x00547424 File Offset: 0x00545624
|
|
[Token(Token = "0x60169F0")]
|
|
[Address(RVA = "0x12EAC20", Offset = "0x12E9A20", VA = "0x1812EAC20")]
|
|
private void LIGHGNJBAEB(ConnectionPoint HDPMJFANOPG, ConnectionPoint GFMAOEPEFKD, [Optional] ConnectionPoint.PGHEPJALOOK AFLPGGJMPOE)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
if (HDPMJFANOPG != num2)
|
|
{
|
|
int num3 = 0;
|
|
if (GFMAOEPEFKD != num3)
|
|
{
|
|
GameObject gameObject = HDPMJFANOPG.gameObject;
|
|
GameObject gameObject2 = this.parentingConnectionPoint.gameObject;
|
|
if (!(gameObject == gameObject2))
|
|
{
|
|
MIGCNEPBKDG componentInParent = HDPMJFANOPG.GetComponentInParent<MIGCNEPBKDG>();
|
|
ConnectionPoint component = HDPMJFANOPG.GetComponent<ConnectionPoint>();
|
|
}
|
|
MIGCNEPBKDG componentInParent2 = GFMAOEPEFKD.GetComponentInParent<MIGCNEPBKDG>();
|
|
if (GFMAOEPEFKD.GetComponent<ConnectionPoint>() != 0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
int num4 = 0;
|
|
if (num != num4)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
int num5 = 0;
|
|
bool flag;
|
|
if (num != num5 && flag)
|
|
{
|
|
if (!base.OGIBLNIIHDK && !base.PBBJCLJPFMI.FNFNLDBILFE && base.PBBJCLJPFMI.NHPPANGAKAP)
|
|
{
|
|
PhotonView photonView = base.JDHMIOJKLCK;
|
|
AGAJMBPABDL agajmbpabdl = KKPBCOOONNK.MDMMDPEKICF;
|
|
photonView.TransferOwnership(agajmbpabdl);
|
|
}
|
|
if (base.OGIBLNIIHDK)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
}
|
|
if (AFLPGGJMPOE != 0)
|
|
{
|
|
int num6 = 0;
|
|
AFLPGGJMPOE((GBDECALBCOP)((uint)2), num6);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060169F1 RID: 92657 RVA: 0x00547510 File Offset: 0x00545710
|
|
[Token(Token = "0x60169F1")]
|
|
[Address(RVA = "0x7FA090", Offset = "0x7F8E90", VA = "0x1807FA090")]
|
|
public InfluencerGizmo()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400EBED RID: 60397
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400EBED")]
|
|
[SerializeField]
|
|
private ConnectionPoint parentingConnectionPoint;
|
|
|
|
// Token: 0x0400EBEE RID: 60398
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400EBEE")]
|
|
[SerializeField]
|
|
private ConnectionPoint influencingConnectionPoint;
|
|
|
|
// Token: 0x02003329 RID: 13097
|
|
[Token(Token = "0x2003329")]
|
|
public enum JFELDIFCJPC
|
|
{
|
|
// Token: 0x0400EBF0 RID: 60400
|
|
[Token(Token = "0x400EBF0")]
|
|
Parenting,
|
|
// Token: 0x0400EBF1 RID: 60401
|
|
[Token(Token = "0x400EBF1")]
|
|
Influencing
|
|
}
|
|
}
|
|
}
|