836 lines
27 KiB
C#
836 lines
27 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom.Async;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.DataStructures.Tokens;
|
|
using RecRoom.Systems.PlayerRoles;
|
|
using RecRoom.Tools;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Players
|
|
{
|
|
// Token: 0x020023DB RID: 9179
|
|
[Token(Token = "0x20023DB")]
|
|
[DisallowMultipleComponent]
|
|
[StructLayout(3)]
|
|
public class PlayerBackpack : MonoBehaviour
|
|
{
|
|
// Token: 0x17002B31 RID: 11057
|
|
// (get) Token: 0x0600FE32 RID: 65074 RVA: 0x003B7A00 File Offset: 0x003B5C00
|
|
// (set) Token: 0x0600FE33 RID: 65075 RVA: 0x003B7A3C File Offset: 0x003B5C3C
|
|
[Token(Token = "0x17002B31")]
|
|
private Tool DOJLGBMDGPE
|
|
{
|
|
[Token(Token = "0x600FE32")]
|
|
[Address(RVA = "0x1415260", Offset = "0x1413C60", VA = "0x181415260")]
|
|
get
|
|
{
|
|
Tool banhcklbadi = this.BANHCKLBADI;
|
|
int num = 0;
|
|
if (banhcklbadi == num)
|
|
{
|
|
int num2 = 0;
|
|
int num3 = NOBCCPHLPNJ.JGGKHJCBGLF("BACKPACK_FAVORITE_TOOL", num2);
|
|
Tool tool;
|
|
this.BANHCKLBADI = tool;
|
|
}
|
|
return this.BANHCKLBADI;
|
|
}
|
|
[Token(Token = "0x600FE33")]
|
|
[Address(RVA = "0x1414DC0", Offset = "0x14137C0", VA = "0x181414DC0")]
|
|
set
|
|
{
|
|
this.BANHCKLBADI = value;
|
|
int num = 0;
|
|
if (value == num)
|
|
{
|
|
}
|
|
int backpackToolType = (int)this.GetBackpackToolType(value);
|
|
this.ILCBNNDJDME = (JKPLBBBJLJK)backpackToolType;
|
|
NOBCCPHLPNJ.CLOFMHGBPPA("BACKPACK_FAVORITE_TOOL", backpackToolType);
|
|
NOBCCPHLPNJ.CHLAOLCBEND();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002B32 RID: 11058
|
|
// (get) Token: 0x0600FE34 RID: 65076 RVA: 0x003B7A80 File Offset: 0x003B5C80
|
|
[Token(Token = "0x17002B32")]
|
|
public JKPLBBBJLJK JFFNFJDKNBH
|
|
{
|
|
[Token(Token = "0x600FE34")]
|
|
[Address(RVA = "0x1416140", Offset = "0x1414B40", VA = "0x181416140")]
|
|
get
|
|
{
|
|
Tool tool = this.DOJLGBMDGPE;
|
|
int num = 0;
|
|
if (tool != num && this.ILCBNNDJDME == JKPLBBBJLJK.INVALID)
|
|
{
|
|
Tool tool2 = this.DOJLGBMDGPE;
|
|
JKPLBBBJLJK backpackToolType = this.GetBackpackToolType(tool2);
|
|
this.ILCBNNDJDME = backpackToolType;
|
|
}
|
|
return this.ILCBNNDJDME;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE35 RID: 65077 RVA: 0x003B7AC8 File Offset: 0x003B5CC8
|
|
[Token(Token = "0x600FE35")]
|
|
[Address(RVA = "0x1414060", Offset = "0x1412A60", VA = "0x181414060")]
|
|
private void Awake()
|
|
{
|
|
global::Player localPlayer = this.LocalPlayer;
|
|
int num = 0;
|
|
if (localPlayer != num)
|
|
{
|
|
global::Player localPlayer2 = this.LocalPlayer;
|
|
Dictionary<string, object> dictionary = new Dictionary();
|
|
int actorNumber = PhotonNetwork.LocalPlayer.actorNumber;
|
|
dictionary.Add("Owner", actorNumber);
|
|
int num2;
|
|
dictionary.Add("Purpose", num2);
|
|
bool flag;
|
|
dictionary.Add("SuppressAnimInOut", flag);
|
|
PlayerBackpackToolConfig.Config[] array = IBEGJAHFGAH.MMOKIFOMPKP();
|
|
int num3 = 0;
|
|
int num4 = 0;
|
|
int length = array.Length;
|
|
if (num3 < length)
|
|
{
|
|
PlayerBackpackToolConfig.Config config = array[num4];
|
|
string name = config.Prefab.name;
|
|
float z = Vector3.zero.z;
|
|
Quaternion identity = Quaternion.identity;
|
|
int viewIdField = this.LocalPlayer.photonView.viewIdField;
|
|
Tool tool6;
|
|
Tool tool = tool6;
|
|
int num5 = 0;
|
|
if (tool6 != num5)
|
|
{
|
|
Dictionary<JKPLBBBJLJK, Tool> lkcblggdmaf = this.LKCBLGGDMAF;
|
|
Tool tool2 = tool;
|
|
JKPLBBBJLJK toolType = config.ToolType;
|
|
lkcblggdmaf[toolType] = tool2;
|
|
Tool tool3 = tool;
|
|
ActionEvent<Tool> prePickupEvent = tool3.PrePickupEvent;
|
|
Action<Tool> action = new Action(this.PEFIFHIAFKH);
|
|
ActionEvent<Tool> actionEvent = prePickupEvent + action;
|
|
tool3.PrePickupEvent = actionEvent;
|
|
Scheduler instance = SingletonMonoBehaviour.Instance;
|
|
Action action2 = delegate
|
|
{
|
|
ToolSkinMapper toolSkinMapper = tool.toolSkinMapper;
|
|
int num7 = 0;
|
|
toolSkinMapper.ApplyLocalPlayerFavoriteSkin(num7 != 0);
|
|
Tool tool4 = tool;
|
|
float z2 = Vector3.one.z;
|
|
Quaternion identity2 = Quaternion.identity;
|
|
PUNNetworkManager.ELLAOHFLFJE.SendPendingRoomUpdates();
|
|
Tool tool5 = tool;
|
|
int num8 = 0;
|
|
tool5.DODDBBEOJNN = num8 != 0;
|
|
};
|
|
IEnumerator<ISchedule> enumerator = this.FCDPMFAAGJN(0.1f, action2);
|
|
ISchedulerPromise schedulerPromise = instance.Run(this, enumerator);
|
|
}
|
|
num4++;
|
|
}
|
|
int num6 = NOBCCPHLPNJ.JGGKHJCBGLF("BACKPACK_FAVORITE_TOOL", -1);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE36 RID: 65078 RVA: 0x003B7C54 File Offset: 0x003B5E54
|
|
[Token(Token = "0x600FE36")]
|
|
[Address(RVA = "0x1414A40", Offset = "0x1413440", VA = "0x181414A40")]
|
|
private IEnumerator<ISchedule> FCDPMFAAGJN(float HABFNPMBADP, Action HEGICCDLHIO)
|
|
{
|
|
int num;
|
|
PlayerBackpack.BMGKFPDMKBA bmgkfpdmkba = new PlayerBackpack.BMGKFPDMKBA(num);
|
|
num = 0;
|
|
bmgkfpdmkba.seconds = HABFNPMBADP;
|
|
bmgkfpdmkba.function = HEGICCDLHIO;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600FE37 RID: 65079 RVA: 0x003B7C80 File Offset: 0x003B5E80
|
|
[Token(Token = "0x600FE37")]
|
|
[Address(RVA = "0x1415310", Offset = "0x1413D10", VA = "0x181415310")]
|
|
private void OnDestroy()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
Dictionary<JKPLBBBJLJK, Tool>.ValueCollection values = this.LKCBLGGDMAF.Values;
|
|
Dictionary<JKPLBBBJLJK, Tool>.ValueCollection.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
Action<Tool> action = new Action(this.PEFIFHIAFKH);
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
this.LKCBLGGDMAF.Clear();
|
|
if (!this.BANHCKLBADI.IsReferenceNull())
|
|
{
|
|
Tool banhcklbadi = this.BANHCKLBADI;
|
|
ActionEvent<Tool> postReleaseEvent = banhcklbadi.PostReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.KPPBDGCIGBB);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent - action2;
|
|
banhcklbadi.PostReleaseEvent = actionEvent;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE38 RID: 65080 RVA: 0x003B7D0C File Offset: 0x003B5F0C
|
|
[Token(Token = "0x600FE38")]
|
|
[Address(RVA = "0x1414E80", Offset = "0x1413880", VA = "0x181414E80")]
|
|
public bool IsInBackpack(Tool EGFEJGHDNAI)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
Dictionary<JKPLBBBJLJK, Tool>.ValueCollection values = this.LKCBLGGDMAF.Values;
|
|
Dictionary<JKPLBBBJLJK, Tool>.ValueCollection.Enumerator enumerator;
|
|
if (enumerator == 0 || this == EGFEJGHDNAI)
|
|
{
|
|
if (num != -1)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600FE39 RID: 65081 RVA: 0x003B7D44 File Offset: 0x003B5F44
|
|
[Token(Token = "0x600FE39")]
|
|
[Address(RVA = "0x1414D40", Offset = "0x1413740", VA = "0x181414D40")]
|
|
public Tool GetBackpackTool(JKPLBBBJLJK AAICMBDEJBE)
|
|
{
|
|
Dictionary<JKPLBBBJLJK, Tool> lkcblggdmaf = this.LKCBLGGDMAF;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600FE3A RID: 65082 RVA: 0x003B7D60 File Offset: 0x003B5F60
|
|
[Token(Token = "0x600FE3A")]
|
|
[Address(RVA = "0x1414B80", Offset = "0x1413580", VA = "0x181414B80")]
|
|
public JKPLBBBJLJK GetBackpackToolType(Tool EGFEJGHDNAI)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
Dictionary<JKPLBBBJLJK, Tool> lkcblggdmaf = this.LKCBLGGDMAF;
|
|
Dictionary.Enumerator enumerator;
|
|
if (enumerator == 0 || this == EGFEJGHDNAI)
|
|
{
|
|
if (num != -1)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600FE3B RID: 65083 RVA: 0x003B7D94 File Offset: 0x003B5F94
|
|
[Token(Token = "0x600FE3B")]
|
|
[Address(RVA = "0x1415540", Offset = "0x1413F40", VA = "0x181415540")]
|
|
private void PEFIFHIAFKH(Tool DHJLJPGNBDL)
|
|
{
|
|
Tool tool = this.DOJLGBMDGPE;
|
|
if (DHJLJPGNBDL == tool)
|
|
{
|
|
Transform transform = this.DOJLGBMDGPE.transform;
|
|
Transform transform2 = this.DOJLGBMDGPE.<PBCNKLKCIHJ>k__BackingField.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
bool peoidpngcgo = this.DOJLGBMDGPE.PEOIDPNGCGO;
|
|
Tool tool2 = this.DOJLGBMDGPE;
|
|
int num = 0;
|
|
tool2.BEKODHBDOFG = num != 0;
|
|
this.DOJLGBMDGPE.PAJGCGDFHKK = true;
|
|
DHJLJPGNBDL.BEKODHBDOFG = peoidpngcgo;
|
|
if (this.BackpackToolGrabbed != 0)
|
|
{
|
|
JKPLBBBJLJK favoriteToolType = this.JFFNFJDKNBH;
|
|
}
|
|
}
|
|
DHJLJPGNBDL.rigidbodyEx.RemoveKinematic(this);
|
|
DHJLJPGNBDL.rigidbodyEx.IEIKHAKBHFL = true;
|
|
}
|
|
|
|
// Token: 0x0600FE3C RID: 65084 RVA: 0x003B7E3C File Offset: 0x003B603C
|
|
[Token(Token = "0x600FE3C")]
|
|
[Address(RVA = "0x14150D0", Offset = "0x1413AD0", VA = "0x1814150D0")]
|
|
private void KPPBDGCIGBB(Tool HHNPIPDIDCO)
|
|
{
|
|
Tool tool = this.DOJLGBMDGPE;
|
|
if (HHNPIPDIDCO == tool && this.DOJLGBMDGPE.PAJGCGDFHKK)
|
|
{
|
|
PlayerToolEquipSlot shoulderSlot = this.LocalPlayer.toolEquipSlots.shoulderSlot;
|
|
Transform transform = HHNPIPDIDCO.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
bool higehnbhmbd = this.DOJLGBMDGPE.HIGEHNBHMBD;
|
|
Tool tool2 = this.DOJLGBMDGPE;
|
|
int num = 0;
|
|
tool2.NFNOHGFMPEA = num != 0;
|
|
Tool tool3 = this.DOJLGBMDGPE;
|
|
int num2 = 0;
|
|
tool3.PAJGCGDFHKK = num2 != 0;
|
|
HHNPIPDIDCO.NFNOHGFMPEA = higehnbhmbd;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE3D RID: 65085 RVA: 0x003B7ED0 File Offset: 0x003B60D0
|
|
[Token(Token = "0x600FE3D")]
|
|
[Address(RVA = "0x1414040", Offset = "0x1412A40", VA = "0x181414040")]
|
|
public void AddDisableFavoriteToolSelection(object PIHIPPPPEBI)
|
|
{
|
|
this.OAFFICNBFFA.Add(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x0600FE3E RID: 65086 RVA: 0x003B7EF0 File Offset: 0x003B60F0
|
|
[Token(Token = "0x600FE3E")]
|
|
[Address(RVA = "0x13FF920", Offset = "0x13FE320", VA = "0x1813FF920")]
|
|
public void RemoveDisableFavoriteToolSelection(object PIHIPPPPEBI)
|
|
{
|
|
this.OAFFICNBFFA.Remove(PIHIPPPPEBI);
|
|
}
|
|
|
|
// Token: 0x0600FE3F RID: 65087 RVA: 0x003B7F10 File Offset: 0x003B6110
|
|
[Token(Token = "0x600FE3F")]
|
|
[Address(RVA = "0x1415D70", Offset = "0x1414770", VA = "0x181415D70")]
|
|
public Tool TryGetFavoriteToolForPickup()
|
|
{
|
|
Tool tool = this.DOJLGBMDGPE;
|
|
int num = 0;
|
|
if (tool != num && !this.OAFFICNBFFA.HasTokens)
|
|
{
|
|
int favoriteToolType = (int)this.JFFNFJDKNBH;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
return this.DOJLGBMDGPE;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600FE40 RID: 65088 RVA: 0x003B7F58 File Offset: 0x003B6158
|
|
[Token(Token = "0x600FE40")]
|
|
[Address(RVA = "0x1415B10", Offset = "0x1414510", VA = "0x181415B10")]
|
|
public void SetFavoriteTool(JKPLBBBJLJK AAICMBDEJBE)
|
|
{
|
|
Tool tool = this.DOJLGBMDGPE;
|
|
int num = 0;
|
|
if (tool != num)
|
|
{
|
|
Tool tool2 = this.DOJLGBMDGPE;
|
|
ActionEvent<Tool> postReleaseEvent = tool2.PostReleaseEvent;
|
|
Action<Tool> action = new Action(this.KPPBDGCIGBB);
|
|
ActionEvent<Tool> actionEvent = postReleaseEvent - action;
|
|
tool2.PostReleaseEvent = actionEvent;
|
|
}
|
|
Tool tool3;
|
|
this.BANHCKLBADI = tool3;
|
|
int num2 = 0;
|
|
if (tool3 == num2)
|
|
{
|
|
}
|
|
JKPLBBBJLJK jkplbbbjljk;
|
|
int num3 = (int)jkplbbbjljk;
|
|
this.ILCBNNDJDME = (JKPLBBBJLJK)num3;
|
|
NOBCCPHLPNJ.CLOFMHGBPPA("BACKPACK_FAVORITE_TOOL", num3);
|
|
NOBCCPHLPNJ.CHLAOLCBEND();
|
|
Tool tool4 = this.DOJLGBMDGPE;
|
|
int num4 = 0;
|
|
if (tool4 != num4)
|
|
{
|
|
Tool tool5 = this.DOJLGBMDGPE;
|
|
ActionEvent<Tool> postReleaseEvent2 = tool5.PostReleaseEvent;
|
|
Action<Tool> action2 = new Action(this.KPPBDGCIGBB);
|
|
ActionEvent<Tool> actionEvent2 = postReleaseEvent2 + action2;
|
|
tool5.PostReleaseEvent = actionEvent2;
|
|
}
|
|
if (this.BackpackFavoriteToolChange != 0)
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE41 RID: 65089 RVA: 0x003B8038 File Offset: 0x003B6238
|
|
[Token(Token = "0x600FE41")]
|
|
[Address(RVA = "0x1415030", Offset = "0x1413A30", VA = "0x181415030")]
|
|
public bool IsInUse(JKPLBBBJLJK AAICMBDEJBE)
|
|
{
|
|
int num = 0;
|
|
Tool tool;
|
|
bool flag = tool != num;
|
|
if (!flag)
|
|
{
|
|
return flag;
|
|
}
|
|
return tool.PAJGCGDFHKK;
|
|
}
|
|
|
|
// Token: 0x0600FE42 RID: 65090 RVA: 0x003B8064 File Offset: 0x003B6264
|
|
[Token(Token = "0x600FE42")]
|
|
[Address(RVA = "0x1415FA0", Offset = "0x14149A0", VA = "0x181415FA0")]
|
|
public bool UseTool(JKPLBBBJLJK AAICMBDEJBE, bool EIIKPMHIKLD = false)
|
|
{
|
|
Tool backpackTool = this.GetBackpackTool(AAICMBDEJBE);
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600FE43 RID: 65091 RVA: 0x003B807C File Offset: 0x003B627C
|
|
[Token(Token = "0x600FE43")]
|
|
[Address(RVA = "0x1415E50", Offset = "0x1414850", VA = "0x181415E50")]
|
|
public bool UseToolImmediately(JKPLBBBJLJK AAICMBDEJBE, bool EIIKPMHIKLD = false)
|
|
{
|
|
Tool backpackTool = this.GetBackpackTool(AAICMBDEJBE);
|
|
bool flag;
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600FE44 RID: 65092 RVA: 0x003B8094 File Offset: 0x003B6294
|
|
[Token(Token = "0x600FE44")]
|
|
[Address(RVA = "0x1415ED0", Offset = "0x14148D0", VA = "0x181415ED0")]
|
|
public bool UseTool(JKPLBBBJLJK AAICMBDEJBE, out ICancelablePromise<Tool> LJKDNNMNIKI, bool EIIKPMHIKLD = false)
|
|
{
|
|
Tool tool;
|
|
PlayerBackpack.DAFCFKKLMGE dafcfkklmge = new PlayerBackpack.DAFCFKKLMGE(tool);
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
// Token: 0x0600FE45 RID: 65093 RVA: 0x003B80B4 File Offset: 0x003B62B4
|
|
[Token(Token = "0x600FE45")]
|
|
[Address(RVA = "0x1415980", Offset = "0x1414380", VA = "0x181415980")]
|
|
public void RecallTool(JKPLBBBJLJK AAICMBDEJBE)
|
|
{
|
|
Tool backpackTool = this.GetBackpackTool(AAICMBDEJBE);
|
|
}
|
|
|
|
// Token: 0x0600FE46 RID: 65094 RVA: 0x003B80CC File Offset: 0x003B62CC
|
|
[Token(Token = "0x600FE46")]
|
|
[Address(RVA = "0x14159D0", Offset = "0x14143D0", VA = "0x1814159D0")]
|
|
public void RecallTool(Tool EGFEJGHDNAI)
|
|
{
|
|
if (!this.IsInBackpack(EGFEJGHDNAI))
|
|
{
|
|
object[] array = new object[1];
|
|
string name = EGFEJGHDNAI.name;
|
|
if (name != 0)
|
|
{
|
|
}
|
|
array[0] = name;
|
|
Debug.LogErrorFormat("{0} doesn't belong in the backpack!", array);
|
|
return;
|
|
}
|
|
JKPLBBBJLJK backpackToolType = this.GetBackpackToolType(EGFEJGHDNAI);
|
|
}
|
|
|
|
// Token: 0x0600FE47 RID: 65095 RVA: 0x003B8118 File Offset: 0x003B6318
|
|
[Token(Token = "0x600FE47")]
|
|
[Address(RVA = "0x1415720", Offset = "0x1414120", VA = "0x181415720")]
|
|
public void RecallAllTools()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
Dictionary<JKPLBBBJLJK, Tool>.ValueCollection values = this.LKCBLGGDMAF.Values;
|
|
Dictionary<JKPLBBBJLJK, Tool>.ValueCollection.Enumerator enumerator;
|
|
bool flag;
|
|
if (enumerator != 0 && !flag)
|
|
{
|
|
object[] array = new object[1];
|
|
string text;
|
|
if (text != 0)
|
|
{
|
|
}
|
|
array[0] = text;
|
|
Debug.LogErrorFormat("{0} doesn't belong in the backpack!", array);
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x0600FE48 RID: 65096 RVA: 0x003B8180 File Offset: 0x003B6380
|
|
[Token(Token = "0x600FE48")]
|
|
[Address(RVA = "0x14145B0", Offset = "0x1412FB0", VA = "0x1814145B0")]
|
|
public static bool CanLocalPlayerEnableTool(JKPLBBBJLJK AAICMBDEJBE)
|
|
{
|
|
if (AAICMBDEJBE == JKPLBBBJLJK.SHARE_CAM)
|
|
{
|
|
return ShareCamera.GENEKKCAAMN;
|
|
}
|
|
return AAICMBDEJBE != JKPLBBBJLJK.MAKER_PEN || PlayerRoomRoleManager.MNFOLNMPMEE;
|
|
}
|
|
|
|
// Token: 0x0600FE49 RID: 65097 RVA: 0x003B81A8 File Offset: 0x003B63A8
|
|
[Token(Token = "0x600FE49")]
|
|
[Address(RVA = "0x1414AC0", Offset = "0x14134C0", VA = "0x181414AC0")]
|
|
private void FFBNKHLKAOC(JKPLBBBJLJK AAICMBDEJBE)
|
|
{
|
|
if (AAICMBDEJBE == JKPLBBBJLJK.SHARE_CAM)
|
|
{
|
|
ShareCamera.ShowCannotUseFeedback();
|
|
if (this.BackpackToolEnabledChange == 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
if (AAICMBDEJBE == JKPLBBBJLJK.MAKER_PEN)
|
|
{
|
|
MakerPen.ShowCannotUseFeedback();
|
|
ActionEvent<Tool, JKPLBBBJLJK, bool, bool> backpackToolEnabledChange = this.BackpackToolEnabledChange;
|
|
if (backpackToolEnabledChange != 0)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
ulong num3;
|
|
backpackToolEnabledChange.Invoke(num2, (uint)1, num, num3);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE4A RID: 65098 RVA: 0x003B81F8 File Offset: 0x003B63F8
|
|
[Token(Token = "0x600FE4A")]
|
|
[Address(RVA = "0x1414640", Offset = "0x1413040", VA = "0x181414640")]
|
|
private bool EHBGFBAEJHO(Tool EGFEJGHDNAI, JKPLBBBJLJK AAICMBDEJBE, bool AFJJHMMNMFB, bool PCCDNKGMEIJ)
|
|
{
|
|
bool flag;
|
|
if (AFJJHMMNMFB && !flag)
|
|
{
|
|
if (AAICMBDEJBE == JKPLBBBJLJK.SHARE_CAM)
|
|
{
|
|
ShareCamera.ShowCannotUseFeedback();
|
|
if (this.BackpackToolEnabledChange == 0)
|
|
{
|
|
goto IL_4B;
|
|
}
|
|
}
|
|
if (AAICMBDEJBE == JKPLBBBJLJK.MAKER_PEN)
|
|
{
|
|
MakerPen.ShowCannotUseFeedback();
|
|
ActionEvent<Tool, JKPLBBBJLJK, bool, bool> backpackToolEnabledChange = this.BackpackToolEnabledChange;
|
|
if (backpackToolEnabledChange != 0)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
ulong num3;
|
|
backpackToolEnabledChange.Invoke(num2, (uint)1, num, num3);
|
|
}
|
|
}
|
|
}
|
|
IL_4B:
|
|
if (!EGFEJGHDNAI.hasAuthority)
|
|
{
|
|
PhotonView photonView = EGFEJGHDNAI.photonView;
|
|
Photon.Realtime.Player localPlayer = PhotonNetwork.LocalPlayer;
|
|
photonView.TransferOwnership(localPlayer);
|
|
}
|
|
if (AFJJHMMNMFB && !EGFEJGHDNAI.PAJGCGDFHKK)
|
|
{
|
|
Transform transform = this.LocalPlayer.head.transform;
|
|
Vector3 up = Vector3.up;
|
|
Transform transform2 = EGFEJGHDNAI.transform;
|
|
Transform transform3 = EGFEJGHDNAI.transform;
|
|
int num4 = 0;
|
|
Quaternion identity = Quaternion.identity;
|
|
transform3.rotation = num4;
|
|
}
|
|
EGFEJGHDNAI.rigidbodyEx.AddKinematic(this);
|
|
RigidbodyEx rigidbodyEx = EGFEJGHDNAI.rigidbodyEx;
|
|
int num5 = 0;
|
|
rigidbodyEx.IEIKHAKBHFL = num5 != 0;
|
|
int num6 = 0;
|
|
EGFEJGHDNAI.PAJGCGDFHKK = num6 != 0;
|
|
if (this.BackpackToolEnabledChange != 0)
|
|
{
|
|
JKPLBBBJLJK backpackToolType = this.GetBackpackToolType(EGFEJGHDNAI);
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x0600FE4B RID: 65099 RVA: 0x003B8304 File Offset: 0x003B6504
|
|
[Token(Token = "0x600FE4B")]
|
|
[Address(RVA = "0x1416030", Offset = "0x1414A30", VA = "0x181416030")]
|
|
public PlayerBackpack()
|
|
{
|
|
Dictionary<JKPLBBBJLJK, Tool> dictionary = new Dictionary();
|
|
this.LKCBLGGDMAF = dictionary;
|
|
this.OMOAEEMJCMP = 0.9f;
|
|
int num;
|
|
ActionEvent<Tool, JKPLBBBJLJK, bool, bool> actionEvent = new ActionEvent(32, num != 0);
|
|
num = 0;
|
|
this.BackpackToolEnabledChange = actionEvent;
|
|
int num2;
|
|
ActionEvent<JKPLBBBJLJK> actionEvent2 = new ActionEvent(4, num2 != 0);
|
|
num2 = 0;
|
|
this.BackpackFavoriteToolChange = actionEvent2;
|
|
int num3;
|
|
ActionEvent<JKPLBBBJLJK> actionEvent3 = new ActionEvent(4, num3 != 0);
|
|
num3 = 0;
|
|
this.BackpackToolGrabbed = actionEvent3;
|
|
TokenFlag tokenFlag = new TokenFlag();
|
|
this.OAFFICNBFFA = tokenFlag;
|
|
this.ILCBNNDJDME = (JKPLBBBJLJK)((ulong)4294967295L);
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400A89E RID: 43166
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400A89E")]
|
|
private Dictionary<JKPLBBBJLJK, Tool> LKCBLGGDMAF;
|
|
|
|
// Token: 0x0400A89F RID: 43167
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400A89F")]
|
|
private float OMOAEEMJCMP;
|
|
|
|
// Token: 0x0400A8A0 RID: 43168
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400A8A0")]
|
|
[NonSerialized]
|
|
public global::Player LocalPlayer;
|
|
|
|
// Token: 0x0400A8A1 RID: 43169
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400A8A1")]
|
|
public ActionEvent<Tool, JKPLBBBJLJK, bool, bool> BackpackToolEnabledChange;
|
|
|
|
// Token: 0x0400A8A2 RID: 43170
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400A8A2")]
|
|
public ActionEvent<JKPLBBBJLJK> BackpackFavoriteToolChange;
|
|
|
|
// Token: 0x0400A8A3 RID: 43171
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400A8A3")]
|
|
public ActionEvent<JKPLBBBJLJK> BackpackToolGrabbed;
|
|
|
|
// Token: 0x0400A8A4 RID: 43172
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400A8A4")]
|
|
private TokenFlag OAFFICNBFFA;
|
|
|
|
// Token: 0x0400A8A5 RID: 43173
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400A8A5")]
|
|
private Tool BANHCKLBADI;
|
|
|
|
// Token: 0x0400A8A6 RID: 43174
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400A8A6")]
|
|
private JKPLBBBJLJK ILCBNNDJDME;
|
|
|
|
// Token: 0x0400A8A7 RID: 43175
|
|
[Token(Token = "0x400A8A7")]
|
|
private static string GODPCPGKACB = "BACKPACK_FAVORITE_TOOL";
|
|
|
|
// Token: 0x020023DC RID: 9180
|
|
[Token(Token = "0x20023DC")]
|
|
private class DAFCFKKLMGE : CancelablePromise<Tool>
|
|
{
|
|
// Token: 0x0600FE4D RID: 65101 RVA: 0x003B83A0 File Offset: 0x003B65A0
|
|
[Token(Token = "0x600FE4D")]
|
|
[Address(RVA = "0x11365F0", Offset = "0x1134FF0", VA = "0x1811365F0")]
|
|
public DAFCFKKLMGE(Tool tool)
|
|
{
|
|
this.EGFEJGHDNAI = tool;
|
|
ActionEvent<Tool> postPickupEvent = tool.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.OBHCKBMPGII);
|
|
ActionEvent<Tool> actionEvent = postPickupEvent + action;
|
|
tool.PostPickupEvent = actionEvent;
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = egfejghdnai.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action2 = new Action(this.APBEFBBOMDJ);
|
|
ActionEvent<Tool> actionEvent2;
|
|
egfejghdnai.PostResetEvent = actionEvent2;
|
|
Tool egfejghdnai2 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> enabledChangeEvent = egfejghdnai2.EnabledChangeEvent;
|
|
Action<Tool> action3 = new Action(this.NPCLHLKHLFK);
|
|
ActionEvent<Tool> actionEvent3 = enabledChangeEvent + action3;
|
|
egfejghdnai2.EnabledChangeEvent = actionEvent3;
|
|
Tool egfejghdnai3 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> destroyEvent = egfejghdnai3.DestroyEvent;
|
|
Action<Tool> action4 = new Action(this.JDGEMECOCJJ);
|
|
ActionEvent<Tool> actionEvent4 = destroyEvent + action4;
|
|
egfejghdnai3.DestroyEvent = actionEvent4;
|
|
Action action5 = new Action(this.OEAOLCNMCLL);
|
|
IPromise<Tool> promise = base.Then(action5);
|
|
Action action6 = new Action(this.OEAOLCNMCLL);
|
|
ICancelablePromise<Tool> cancelablePromise = base.Canceled(action6);
|
|
Action<string> action7 = new Action(this.ACKOLLFBGDC);
|
|
IPromise<Tool> promise2 = base.Error(action7);
|
|
}
|
|
|
|
// Token: 0x0600FE4E RID: 65102 RVA: 0x003B84B8 File Offset: 0x003B66B8
|
|
[Token(Token = "0x600FE4E")]
|
|
[Address(RVA = "0x11362F0", Offset = "0x1134CF0", VA = "0x1811362F0")]
|
|
private void OEAOLCNMCLL()
|
|
{
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
int num = 0;
|
|
if (egfejghdnai != num)
|
|
{
|
|
Tool egfejghdnai2 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> postPickupEvent = egfejghdnai2.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.OBHCKBMPGII);
|
|
ActionEvent<Tool> actionEvent = postPickupEvent - action;
|
|
egfejghdnai2.PostPickupEvent = actionEvent;
|
|
Tool egfejghdnai3 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = egfejghdnai3.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action2 = new Action(this.APBEFBBOMDJ);
|
|
ActionEvent<Tool> actionEvent2;
|
|
egfejghdnai3.PostResetEvent = actionEvent2;
|
|
Tool egfejghdnai4 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> enabledChangeEvent = egfejghdnai4.EnabledChangeEvent;
|
|
Action<Tool> action3 = new Action(this.NPCLHLKHLFK);
|
|
ActionEvent<Tool> actionEvent3 = enabledChangeEvent - action3;
|
|
egfejghdnai4.EnabledChangeEvent = actionEvent3;
|
|
Tool egfejghdnai5 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> destroyEvent = egfejghdnai5.DestroyEvent;
|
|
Action<Tool> action4 = new Action(this.JDGEMECOCJJ);
|
|
ActionEvent<Tool> actionEvent4 = destroyEvent - action4;
|
|
egfejghdnai5.DestroyEvent = actionEvent4;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE4F RID: 65103 RVA: 0x003B85A0 File Offset: 0x003B67A0
|
|
[Token(Token = "0x600FE4F")]
|
|
[Address(RVA = "0x11365B0", Offset = "0x1134FB0", VA = "0x1811365B0")]
|
|
private void OBHCKBMPGII(Tool EGFEJGHDNAI)
|
|
{
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
base.Complete(egfejghdnai);
|
|
}
|
|
|
|
// Token: 0x0600FE50 RID: 65104 RVA: 0x003B85BC File Offset: 0x003B67BC
|
|
[Token(Token = "0x600FE50")]
|
|
[Address(RVA = "0x11364D0", Offset = "0x1134ED0", VA = "0x1811364D0")]
|
|
private void APBEFBBOMDJ(Tool NBHJPDBHDHB, Vector3 BNMOCBJEEPN, Quaternion LPHCCEOHNIN, Vector3 GMMJHABHDHE, bool ACPOOMGHPKJ)
|
|
{
|
|
base.Cancel();
|
|
}
|
|
|
|
// Token: 0x0600FE51 RID: 65105 RVA: 0x003B85D0 File Offset: 0x003B67D0
|
|
[Token(Token = "0x600FE51")]
|
|
[Address(RVA = "0x1136550", Offset = "0x1134F50", VA = "0x181136550")]
|
|
private void NPCLHLKHLFK(Tool LIMOILDIGKF)
|
|
{
|
|
if (!LIMOILDIGKF.PAJGCGDFHKK)
|
|
{
|
|
base.Cancel();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600FE52 RID: 65106 RVA: 0x003B85F4 File Offset: 0x003B67F4
|
|
[Token(Token = "0x600FE52")]
|
|
[Address(RVA = "0x1136510", Offset = "0x1134F10", VA = "0x181136510")]
|
|
private void JDGEMECOCJJ(Tool CHFBDBLMLCG)
|
|
{
|
|
base.Cancel();
|
|
}
|
|
|
|
// Token: 0x0600FE53 RID: 65107 RVA: 0x003B8608 File Offset: 0x003B6808
|
|
[Token(Token = "0x600FE53")]
|
|
[Address(RVA = "0x11362F0", Offset = "0x1134CF0", VA = "0x1811362F0")]
|
|
[CompilerGenerated]
|
|
private void ACKOLLFBGDC(string NCKNCLLNLGA)
|
|
{
|
|
Tool egfejghdnai = this.EGFEJGHDNAI;
|
|
int num = 0;
|
|
if (egfejghdnai != num)
|
|
{
|
|
Tool egfejghdnai2 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> postPickupEvent = egfejghdnai2.PostPickupEvent;
|
|
Action<Tool> action = new Action(this.OBHCKBMPGII);
|
|
ActionEvent<Tool> actionEvent = postPickupEvent - action;
|
|
egfejghdnai2.PostPickupEvent = actionEvent;
|
|
Tool egfejghdnai3 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool, Vector3, Quaternion, Vector3, bool> postResetEvent = egfejghdnai3.PostResetEvent;
|
|
Action<Tool, Vector3, Quaternion, Vector3, bool> action2 = new Action(this.APBEFBBOMDJ);
|
|
ActionEvent<Tool> actionEvent2;
|
|
egfejghdnai3.PostResetEvent = actionEvent2;
|
|
Tool egfejghdnai4 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> enabledChangeEvent = egfejghdnai4.EnabledChangeEvent;
|
|
Action<Tool> action3 = new Action(this.NPCLHLKHLFK);
|
|
ActionEvent<Tool> actionEvent3 = enabledChangeEvent - action3;
|
|
egfejghdnai4.EnabledChangeEvent = actionEvent3;
|
|
Tool egfejghdnai5 = this.EGFEJGHDNAI;
|
|
ActionEvent<Tool> destroyEvent = egfejghdnai5.DestroyEvent;
|
|
Action<Tool> action4 = new Action(this.JDGEMECOCJJ);
|
|
ActionEvent<Tool> actionEvent4 = destroyEvent - action4;
|
|
egfejghdnai5.DestroyEvent = actionEvent4;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400A8A8 RID: 43176
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400A8A8")]
|
|
private readonly Tool EGFEJGHDNAI;
|
|
}
|
|
|
|
// Token: 0x020023DD RID: 9181
|
|
[Token(Token = "0x20023DD")]
|
|
[CompilerGenerated]
|
|
private sealed class IFAJGIALEPC
|
|
{
|
|
// Token: 0x0600FE54 RID: 65108 RVA: 0x003B86F0 File Offset: 0x003B68F0
|
|
[Token(Token = "0x600FE54")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public IFAJGIALEPC()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600FE55 RID: 65109 RVA: 0x003B8704 File Offset: 0x003B6904
|
|
[Token(Token = "0x600FE55")]
|
|
[Address(RVA = "0x1137370", Offset = "0x1135D70", VA = "0x181137370")]
|
|
internal void <Awake>b__0()
|
|
{
|
|
ToolSkinMapper toolSkinMapper = this.tool.toolSkinMapper;
|
|
int num = 0;
|
|
toolSkinMapper.ApplyLocalPlayerFavoriteSkin(num != 0);
|
|
Tool tool = this.tool;
|
|
float z = Vector3.one.z;
|
|
Quaternion identity = Quaternion.identity;
|
|
PUNNetworkManager.ELLAOHFLFJE.SendPendingRoomUpdates();
|
|
Tool tool2 = this.tool;
|
|
int num2 = 0;
|
|
tool2.DODDBBEOJNN = num2 != 0;
|
|
}
|
|
|
|
// Token: 0x0400A8A9 RID: 43177
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400A8A9")]
|
|
public Tool tool;
|
|
}
|
|
}
|
|
}
|