630 lines
22 KiB
C#
630 lines
22 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core
|
|
{
|
|
// Token: 0x020027D5 RID: 10197
|
|
[Token(Token = "0x20027D5")]
|
|
[StructLayout(3)]
|
|
public sealed class PlayerToolEquipSlots : MonoBehaviourPun
|
|
{
|
|
// Token: 0x17003031 RID: 12337
|
|
// (get) Token: 0x06011D98 RID: 73112 RVA: 0x00443734 File Offset: 0x00441934
|
|
[Token(Token = "0x17003031")]
|
|
public PlayerToolEquipSlot IDDLFEIDJMI
|
|
{
|
|
[Token(Token = "0x6011D98")]
|
|
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
|
get
|
|
{
|
|
return this.shoulderSlot;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003032 RID: 12338
|
|
// (get) Token: 0x06011D99 RID: 73113 RVA: 0x00443748 File Offset: 0x00441948
|
|
[Token(Token = "0x17003032")]
|
|
public PlayerToolEquipSlot PBKGJOHGAOJ
|
|
{
|
|
[Token(Token = "0x6011D99")]
|
|
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
|
|
get
|
|
{
|
|
return this.leftHipSlot;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003033 RID: 12339
|
|
// (get) Token: 0x06011D9A RID: 73114 RVA: 0x0044375C File Offset: 0x0044195C
|
|
[Token(Token = "0x17003033")]
|
|
public PlayerToolEquipSlot MJMBCIALCJG
|
|
{
|
|
[Token(Token = "0x6011D9A")]
|
|
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740")]
|
|
get
|
|
{
|
|
return this.rightHipSlot;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003034 RID: 12340
|
|
// (get) Token: 0x06011D9B RID: 73115 RVA: 0x00443770 File Offset: 0x00441970
|
|
// (set) Token: 0x06011D9C RID: 73116 RVA: 0x00443784 File Offset: 0x00441984
|
|
[Token(Token = "0x17003034")]
|
|
public PlayerToolEquipSlot[] HFGNBOJHDNI
|
|
{
|
|
[Token(Token = "0x6011D9B")]
|
|
[Address(RVA = "0x48F050", Offset = "0x48DA50", VA = "0x18048F050")]
|
|
get;
|
|
[Token(Token = "0x6011D9C")]
|
|
[Address(RVA = "0x52F860", Offset = "0x52E260", VA = "0x18052F860")]
|
|
private set;
|
|
}
|
|
|
|
// Token: 0x17003035 RID: 12341
|
|
// (set) Token: 0x06011D9D RID: 73117 RVA: 0x00443798 File Offset: 0x00441998
|
|
[Token(Token = "0x17003035")]
|
|
public bool KPCNMNHHIIE
|
|
{
|
|
[Token(Token = "0x6011D9D")]
|
|
[Address(RVA = "0x19AEA40", Offset = "0x19AD440", VA = "0x1819AEA40")]
|
|
set
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot = array[num];
|
|
num++;
|
|
playerToolEquipSlot.AutomaticallyEquipToolOnDrop = value;
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003036 RID: 12342
|
|
// (set) Token: 0x06011D9E RID: 73118 RVA: 0x004437D8 File Offset: 0x004419D8
|
|
[Token(Token = "0x17003036")]
|
|
public bool LKAMMOHBINC
|
|
{
|
|
[Token(Token = "0x6011D9E")]
|
|
[Address(RVA = "0x19AEAB0", Offset = "0x19AD4B0", VA = "0x1819AEAB0")]
|
|
set
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
FNCLOCJLFDG hcpbbfgibab = array[num].HCPBBFGIBAB;
|
|
num++;
|
|
hcpbbfgibab.LKAMMOHBINC = value;
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003037 RID: 12343
|
|
// (get) Token: 0x06011D9F RID: 73119 RVA: 0x0044381C File Offset: 0x00441A1C
|
|
// (set) Token: 0x06011DA0 RID: 73120 RVA: 0x00443830 File Offset: 0x00441A30
|
|
[Token(Token = "0x17003037")]
|
|
public FBMHCMDMJGK DJNEEPCFKGO
|
|
{
|
|
[Token(Token = "0x6011D9F")]
|
|
[Address(RVA = "0x4EA8C0", Offset = "0x4E92C0", VA = "0x1804EA8C0")]
|
|
get;
|
|
[Token(Token = "0x6011DA0")]
|
|
[Address(RVA = "0x568530", Offset = "0x566F30", VA = "0x180568530")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06011DA1 RID: 73121 RVA: 0x00443844 File Offset: 0x00441A44
|
|
[Token(Token = "0x6011DA1")]
|
|
[Address(RVA = "0x19AD0E0", Offset = "0x19ABAE0", VA = "0x1819AD0E0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base..ctor();
|
|
PlayerToolEquipSlot[] array = new PlayerToolEquipSlot[3];
|
|
PlayerToolEquipSlot playerToolEquipSlot = this.shoulderSlot;
|
|
if (playerToolEquipSlot != 0)
|
|
{
|
|
}
|
|
array[0] = playerToolEquipSlot;
|
|
PlayerToolEquipSlot playerToolEquipSlot2 = this.rightHipSlot;
|
|
if (playerToolEquipSlot2 != 0)
|
|
{
|
|
}
|
|
array[1] = playerToolEquipSlot2;
|
|
PlayerToolEquipSlot playerToolEquipSlot3 = this.leftHipSlot;
|
|
if (playerToolEquipSlot3 != 0)
|
|
{
|
|
}
|
|
int num = 0;
|
|
array[2] = playerToolEquipSlot3;
|
|
this.<HBBPIPDDLKN>k__BackingField = array;
|
|
if (num < array.Length)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot4 = array[num];
|
|
ActionEvent<bool> enabledChanged = playerToolEquipSlot4.EnabledChanged;
|
|
Action<bool> action = new Action(this.DLOBNNAAJFA);
|
|
ActionEvent<bool> actionEvent = enabledChanged + action;
|
|
playerToolEquipSlot4.EnabledChanged = actionEvent;
|
|
PlayerToolEquipSlot playerToolEquipSlot5 = this.<HBBPIPDDLKN>k__BackingField[num];
|
|
ActionEvent equipRestrictionsChanged = playerToolEquipSlot5.EquipRestrictionsChanged;
|
|
Action action2 = new Action(this.JLEPBKPLBEL);
|
|
ActionEvent actionEvent2 = equipRestrictionsChanged + action2;
|
|
playerToolEquipSlot5.EquipRestrictionsChanged = actionEvent2;
|
|
PlayerToolEquipSlot playerToolEquipSlot6 = this.<HBBPIPDDLKN>k__BackingField[num];
|
|
ActionEvent<Tool, PlayerToolEquipSlot> toolEquipEvent = playerToolEquipSlot6.ToolEquipEvent;
|
|
Action<Tool, PlayerToolEquipSlot> action3 = new Action(this.IODFHMPGPCL);
|
|
ActionEvent<Tool> actionEvent3;
|
|
playerToolEquipSlot6.ToolEquipEvent = actionEvent3;
|
|
PlayerToolEquipSlot playerToolEquipSlot7 = this.<HBBPIPDDLKN>k__BackingField[num];
|
|
ActionEvent<Tool, PlayerToolEquipSlot> toolUnequipEvent = playerToolEquipSlot7.ToolUnequipEvent;
|
|
Action<Tool, PlayerToolEquipSlot> action4 = new Action(this.PILFCPJMIKN);
|
|
ActionEvent<Tool> actionEvent4;
|
|
playerToolEquipSlot7.ToolUnequipEvent = actionEvent4;
|
|
num++;
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DA2 RID: 73122 RVA: 0x00443990 File Offset: 0x00441B90
|
|
[Token(Token = "0x6011DA2")]
|
|
[Address(RVA = "0x19AE4C0", Offset = "0x19ACEC0", VA = "0x1819AE4C0", Slot = "14")]
|
|
protected override void OnDestroy()
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot = array[num];
|
|
ActionEvent<bool> enabledChanged = playerToolEquipSlot.EnabledChanged;
|
|
Action<bool> action = new Action(this.DLOBNNAAJFA);
|
|
ActionEvent<bool> actionEvent = enabledChanged - action;
|
|
playerToolEquipSlot.EnabledChanged = actionEvent;
|
|
PlayerToolEquipSlot playerToolEquipSlot2 = this.<HBBPIPDDLKN>k__BackingField[num];
|
|
ActionEvent equipRestrictionsChanged = playerToolEquipSlot2.EquipRestrictionsChanged;
|
|
Action action2 = new Action(this.JLEPBKPLBEL);
|
|
ActionEvent actionEvent2 = equipRestrictionsChanged - action2;
|
|
playerToolEquipSlot2.EquipRestrictionsChanged = actionEvent2;
|
|
PlayerToolEquipSlot playerToolEquipSlot3 = this.<HBBPIPDDLKN>k__BackingField[num];
|
|
ActionEvent<Tool, PlayerToolEquipSlot> toolEquipEvent = playerToolEquipSlot3.ToolEquipEvent;
|
|
Action<Tool, PlayerToolEquipSlot> action3 = new Action(this.IODFHMPGPCL);
|
|
ActionEvent<Tool> actionEvent3;
|
|
playerToolEquipSlot3.ToolEquipEvent = actionEvent3;
|
|
PlayerToolEquipSlot playerToolEquipSlot4 = this.<HBBPIPDDLKN>k__BackingField[num];
|
|
ActionEvent<Tool, PlayerToolEquipSlot> toolUnequipEvent = playerToolEquipSlot4.ToolUnequipEvent;
|
|
Action<Tool, PlayerToolEquipSlot> action4 = new Action(this.PILFCPJMIKN);
|
|
ActionEvent<Tool> actionEvent4;
|
|
playerToolEquipSlot4.ToolUnequipEvent = actionEvent4;
|
|
num++;
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
}
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x06011DA3 RID: 73123 RVA: 0x00443A90 File Offset: 0x00441C90
|
|
[Token(Token = "0x6011DA3")]
|
|
[Address(RVA = "0x19ADFA0", Offset = "0x19AC9A0", VA = "0x1819ADFA0")]
|
|
public PlayerToolEquipSlot GetEquipSlotHoldingTool(Tool EGFEJGHDNAI)
|
|
{
|
|
int num = 0;
|
|
if (EGFEJGHDNAI != num)
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num2 = 0;
|
|
if (num2 < array.Length)
|
|
{
|
|
bool flag = array[num2].HCPBBFGIBAB.FCFOKGIDIBO == EGFEJGHDNAI;
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
if (!flag)
|
|
{
|
|
num2++;
|
|
}
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011DA4 RID: 73124 RVA: 0x00443AEC File Offset: 0x00441CEC
|
|
[Token(Token = "0x6011DA4")]
|
|
[Address(RVA = "0x19AE790", Offset = "0x19AD190", VA = "0x1819AE790")]
|
|
public bool TryEquipTool(Tool EGFEJGHDNAI, PlayerHand BMGHHEKPMKP, bool ADBMCPMMPOE = true)
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot = array[num];
|
|
if (!this.CanEquipTool(EGFEJGHDNAI, BMGHHEKPMKP, playerToolEquipSlot) || !playerToolEquipSlot.TryEquipTool(EGFEJGHDNAI, BMGHHEKPMKP, ADBMCPMMPOE))
|
|
{
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
num++;
|
|
}
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011DA5 RID: 73125 RVA: 0x00443B40 File Offset: 0x00441D40
|
|
[Token(Token = "0x6011DA5")]
|
|
[Address(RVA = "0x19AE890", Offset = "0x19AD290", VA = "0x1819AE890")]
|
|
public bool TryEquipTool(Tool EGFEJGHDNAI, PlayerHand BMGHHEKPMKP, PlayerToolEquipSlot HCPBBFGIBAB, bool ADBMCPMMPOE = true)
|
|
{
|
|
if (this.CanEquipTool(EGFEJGHDNAI, BMGHHEKPMKP, HCPBBFGIBAB))
|
|
{
|
|
ulong num;
|
|
return HCPBBFGIBAB.TryEquipTool(EGFEJGHDNAI, BMGHHEKPMKP, num != 0UL);
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011DA6 RID: 73126 RVA: 0x00443B6C File Offset: 0x00441D6C
|
|
[Token(Token = "0x6011DA6")]
|
|
[Address(RVA = "0x19ADB10", Offset = "0x19AC510", VA = "0x1819ADB10")]
|
|
public bool EquipSlotCurrentlyEnabled(PlayerToolEquipSlot HCPBBFGIBAB)
|
|
{
|
|
int num = 0;
|
|
if (!(HCPBBFGIBAB == num) && HCPBBFGIBAB.enabled && (HCPBBFGIBAB.HCPBBFGIBAB.KNNGLAPMELK != FNCLOCJLFDG.LDHGJHOFPKC.Hip || this.<HPAMHOBGDEF>k__BackingField != FBMHCMDMJGK.ALL_DISABLED))
|
|
{
|
|
return true;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011DA7 RID: 73127 RVA: 0x00443BB0 File Offset: 0x00441DB0
|
|
[Token(Token = "0x6011DA7")]
|
|
[Address(RVA = "0x19AD9C0", Offset = "0x19AC3C0", VA = "0x1819AD9C0")]
|
|
public bool EquipSlotCurrentlyAvailable(PlayerToolEquipSlot HCPBBFGIBAB)
|
|
{
|
|
if (this.EquipSlotCurrentlyEnabled(HCPBBFGIBAB))
|
|
{
|
|
if (HCPBBFGIBAB.HCPBBFGIBAB.KNNGLAPMELK == FNCLOCJLFDG.LDHGJHOFPKC.Hip && this.<HPAMHOBGDEF>k__BackingField == FBMHCMDMJGK.ONE_ENABLED)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot = this.leftHipSlot;
|
|
if (HCPBBFGIBAB == playerToolEquipSlot && this.rightHipSlot.HCPBBFGIBAB.FDMFNIJKHKC)
|
|
{
|
|
goto IL_6B;
|
|
}
|
|
PlayerToolEquipSlot playerToolEquipSlot2 = this.rightHipSlot;
|
|
if (HCPBBFGIBAB == playerToolEquipSlot2 && this.leftHipSlot.HCPBBFGIBAB.FDMFNIJKHKC)
|
|
{
|
|
goto IL_6B;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
IL_6B:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011DA8 RID: 73128 RVA: 0x00443C30 File Offset: 0x00441E30
|
|
[Token(Token = "0x6011DA8")]
|
|
[Address(RVA = "0x19AD450", Offset = "0x19ABE50", VA = "0x1819AD450")]
|
|
public bool CanEquipTool(Tool EGFEJGHDNAI, PlayerHand BMGHHEKPMKP, PlayerToolEquipSlot HCPBBFGIBAB)
|
|
{
|
|
if (this.EquipSlotCurrentlyEnabled(HCPBBFGIBAB))
|
|
{
|
|
if (HCPBBFGIBAB.HCPBBFGIBAB.KNNGLAPMELK == FNCLOCJLFDG.LDHGJHOFPKC.Hip && this.<HPAMHOBGDEF>k__BackingField == FBMHCMDMJGK.ONE_ENABLED)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot = this.leftHipSlot;
|
|
if (HCPBBFGIBAB == playerToolEquipSlot && this.rightHipSlot.HCPBBFGIBAB.FDMFNIJKHKC)
|
|
{
|
|
goto IL_72;
|
|
}
|
|
PlayerToolEquipSlot playerToolEquipSlot2 = this.rightHipSlot;
|
|
if (HCPBBFGIBAB == playerToolEquipSlot2 && this.leftHipSlot.HCPBBFGIBAB.FDMFNIJKHKC)
|
|
{
|
|
goto IL_72;
|
|
}
|
|
}
|
|
bool flag = HCPBBFGIBAB.CanEquipTool(EGFEJGHDNAI, BMGHHEKPMKP);
|
|
}
|
|
IL_72:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06011DA9 RID: 73129 RVA: 0x00443CB8 File Offset: 0x00441EB8
|
|
[Token(Token = "0x6011DA9")]
|
|
[Address(RVA = "0x19AD940", Offset = "0x19AC340", VA = "0x1819AD940")]
|
|
public void DropAllTools()
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
array[num].DropTool();
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DAA RID: 73130 RVA: 0x00443CF4 File Offset: 0x00441EF4
|
|
[Token(Token = "0x6011DAA")]
|
|
[Address(RVA = "0x19AD740", Offset = "0x19AC140", VA = "0x1819AD740")]
|
|
public void DropAllNotOwnedTools()
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
Tool fcfokgidibo = array[num].HCPBBFGIBAB.FCFOKGIDIBO;
|
|
int num2 = 0;
|
|
if (fcfokgidibo != num2)
|
|
{
|
|
PlayerSpawnedEquipment <FLFJCIPBAPA>k__BackingField = this.<HBBPIPDDLKN>k__BackingField[num].HCPBBFGIBAB.FCFOKGIDIBO.<FLFJCIPBAPA>k__BackingField;
|
|
int num3 = 0;
|
|
if (<FLFJCIPBAPA>k__BackingField == num3 || !this.<HBBPIPDDLKN>k__BackingField[num].HCPBBFGIBAB.FCFOKGIDIBO.<FLFJCIPBAPA>k__BackingField.<MHCDCIGJNNA>k__BackingField)
|
|
{
|
|
this.<HBBPIPDDLKN>k__BackingField[num].DropTool();
|
|
}
|
|
}
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DAB RID: 73131 RVA: 0x00443DA8 File Offset: 0x00441FA8
|
|
[Token(Token = "0x6011DAB")]
|
|
[Address(RVA = "0x19ADF50", Offset = "0x19AC950", VA = "0x1819ADF50")]
|
|
public PlayerToolEquipSlot GetEquipSlotById(int ENJEOLBEALP)
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int length = array.Length;
|
|
if (ENJEOLBEALP < length)
|
|
{
|
|
return array[ENJEOLBEALP];
|
|
}
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
|
|
// Token: 0x06011DAC RID: 73132 RVA: 0x00443DD8 File Offset: 0x00441FD8
|
|
[Token(Token = "0x6011DAC")]
|
|
[Address(RVA = "0x19AE100", Offset = "0x19ACB00", VA = "0x1819AE100")]
|
|
public PlayerToolEquipSlot GetNextEnabledEquipSlotById(ref int ENJEOLBEALP, bool ELMIFIBABIK, bool AABHBECFPLE)
|
|
{
|
|
PlayerToolEquipSlot[] array;
|
|
int length2;
|
|
do
|
|
{
|
|
int length = this.<HBBPIPDDLKN>k__BackingField.Length;
|
|
PlayerToolEquipSlot playerToolEquipSlot = this.<HBBPIPDDLKN>k__BackingField[ref ENJEOLBEALP];
|
|
if (this.EquipSlotCurrentlyEnabled(playerToolEquipSlot))
|
|
{
|
|
Tool fcfokgidibo = playerToolEquipSlot.HCPBBFGIBAB.FCFOKGIDIBO;
|
|
int num = 0;
|
|
bool flag = fcfokgidibo != num;
|
|
if (ELMIFIBABIK)
|
|
{
|
|
}
|
|
}
|
|
uint num2;
|
|
num2 += (uint)1;
|
|
array = this.<HBBPIPDDLKN>k__BackingField;
|
|
length2 = array.Length;
|
|
}
|
|
while ((ref ENJEOLBEALP) >= length2);
|
|
return array[ref ENJEOLBEALP];
|
|
}
|
|
|
|
// Token: 0x06011DAD RID: 73133 RVA: 0x00443E58 File Offset: 0x00442058
|
|
[Token(Token = "0x6011DAD")]
|
|
[Address(RVA = "0x19ADBC0", Offset = "0x19AC5C0", VA = "0x1819ADBC0")]
|
|
public void EquipTools(int[] DLDOMDMMBPC, Tool[] CGAFIGJCFHO)
|
|
{
|
|
if (DLDOMDMMBPC != 0 && CGAFIGJCFHO != 0)
|
|
{
|
|
int num = 0;
|
|
int length = DLDOMDMMBPC.Length;
|
|
if (num < length && num < CGAFIGJCFHO.Length)
|
|
{
|
|
int num2 = DLDOMDMMBPC[num];
|
|
PlayerToolEquipSlot equipSlotById = this.GetEquipSlotById(num2);
|
|
int num3 = 0;
|
|
if (equipSlotById != num3 && !equipSlotById.HCPBBFGIBAB.FDMFNIJKHKC)
|
|
{
|
|
Tool tool = CGAFIGJCFHO[num];
|
|
int num4 = 0;
|
|
if (tool != num4)
|
|
{
|
|
Tool tool2 = CGAFIGJCFHO[num];
|
|
int num5 = 0;
|
|
int num6 = 0;
|
|
bool flag = equipSlotById.TryEquipTool(tool2, num6, num5 != 0);
|
|
}
|
|
}
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DAE RID: 73134 RVA: 0x00443EF4 File Offset: 0x004420F4
|
|
[Token(Token = "0x6011DAE")]
|
|
[Address(RVA = "0x19ADD70", Offset = "0x19AC770", VA = "0x1819ADD70")]
|
|
public void GetAllEquippedTools(out int[] DLDOMDMMBPC, out Tool[] CGAFIGJCFHO)
|
|
{
|
|
this.JEMJMDBKGKE.Clear();
|
|
this.JEPPNOMJGEB.Clear();
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
PlayerToolEquipSlot playerToolEquipSlot;
|
|
Tool fcfokgidibo = playerToolEquipSlot.HCPBBFGIBAB.FCFOKGIDIBO;
|
|
int num2 = 0;
|
|
if (fcfokgidibo != num2)
|
|
{
|
|
this.JEMJMDBKGKE.Add(num);
|
|
PlayerToolEquipSlot[] array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
PlayerToolEquipSlot playerToolEquipSlot2;
|
|
FNCLOCJLFDG hcpbbfgibab = playerToolEquipSlot2.HCPBBFGIBAB;
|
|
List<Tool> jeppnomjgeb = this.JEPPNOMJGEB;
|
|
Tool fcfokgidibo2 = hcpbbfgibab.FCFOKGIDIBO;
|
|
jeppnomjgeb.Add(fcfokgidibo2);
|
|
}
|
|
PlayerToolEquipSlot[] array3 = this.<HBBPIPDDLKN>k__BackingField;
|
|
num++;
|
|
}
|
|
int[] array4 = this.JEMJMDBKGKE.ToArray();
|
|
DLDOMDMMBPC.m_value = array4;
|
|
Tool[] array5 = this.JEPPNOMJGEB.ToArray();
|
|
}
|
|
|
|
// Token: 0x06011DAF RID: 73135 RVA: 0x00443FB0 File Offset: 0x004421B0
|
|
[Token(Token = "0x6011DAF")]
|
|
[Address(RVA = "0x19AE2C0", Offset = "0x19ACCC0", VA = "0x1819AE2C0")]
|
|
private void IODFHMPGPCL(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
ActionEvent<Tool, PlayerToolEquipSlot> toolEquipEvent = this.ToolEquipEvent;
|
|
if (toolEquipEvent != 0)
|
|
{
|
|
toolEquipEvent.Invoke(EGFEJGHDNAI, POFOFFDCGCB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DB0 RID: 73136 RVA: 0x00443FD0 File Offset: 0x004421D0
|
|
[Token(Token = "0x6011DB0")]
|
|
[Address(RVA = "0x19AE730", Offset = "0x19AD130", VA = "0x1819AE730")]
|
|
private void PILFCPJMIKN(Tool EGFEJGHDNAI, PlayerToolEquipSlot POFOFFDCGCB)
|
|
{
|
|
ActionEvent<Tool, PlayerToolEquipSlot> toolUnequipEvent = this.ToolUnequipEvent;
|
|
if (toolUnequipEvent != 0)
|
|
{
|
|
toolUnequipEvent.Invoke(EGFEJGHDNAI, POFOFFDCGCB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DB1 RID: 73137 RVA: 0x00443FF0 File Offset: 0x004421F0
|
|
[Token(Token = "0x6011DB1")]
|
|
[Address(RVA = "0x19AE4A0", Offset = "0x19ACEA0", VA = "0x1819AE4A0")]
|
|
private static int MGIBAIDIHKM(int FAGNIPNAOBB, int GPDGCLIOACB, int KALKEMJNIFJ)
|
|
{
|
|
return GPDGCLIOACB;
|
|
}
|
|
|
|
// Token: 0x06011DB2 RID: 73138 RVA: 0x00444000 File Offset: 0x00442200
|
|
[Token(Token = "0x6011DB2")]
|
|
[Address(RVA = "0x19AD5C0", Offset = "0x19ABFC0", VA = "0x1819AD5C0")]
|
|
private void DLOBNNAAJFA(bool CBHMNNAINHM)
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
PlayerToolEquipSlot[] array2;
|
|
if (num < array.Length && !array[num].enabled)
|
|
{
|
|
array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
num++;
|
|
}
|
|
PlayerToolEquipSlot playerToolEquipSlot = array2[10];
|
|
ActionEvent equipSlotsEnabledChangedEvent = this.EquipSlotsEnabledChangedEvent;
|
|
if (equipSlotsEnabledChangedEvent != 0)
|
|
{
|
|
int num2 = 0;
|
|
equipSlotsEnabledChangedEvent.Invoke(num2 != 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DB3 RID: 73139 RVA: 0x00444064 File Offset: 0x00442264
|
|
[Token(Token = "0x6011DB3")]
|
|
[Address(RVA = "0x19AE320", Offset = "0x19ACD20", VA = "0x1819AE320")]
|
|
private void JLEPBKPLBEL()
|
|
{
|
|
PlayerToolEquipSlot[] array = this.<HBBPIPDDLKN>k__BackingField;
|
|
int num = 0;
|
|
PlayerToolEquipSlot[] array2;
|
|
if (num < array.Length && !array[num].enabled)
|
|
{
|
|
array2 = this.<HBBPIPDDLKN>k__BackingField;
|
|
num++;
|
|
}
|
|
PlayerToolEquipSlot playerToolEquipSlot = array2[10];
|
|
ActionEvent equipRestrictionsChangedEvent = this.EquipRestrictionsChangedEvent;
|
|
if (equipRestrictionsChangedEvent != 0)
|
|
{
|
|
int num2 = 0;
|
|
equipRestrictionsChangedEvent.Invoke(num2 != 0);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011DB4 RID: 73140 RVA: 0x004440C8 File Offset: 0x004422C8
|
|
[Token(Token = "0x6011DB4")]
|
|
[Address(RVA = "0x19AE910", Offset = "0x19AD310", VA = "0x1819AE910")]
|
|
public PlayerToolEquipSlots()
|
|
{
|
|
List<int> list = new List();
|
|
this.JEMJMDBKGKE = list;
|
|
List<Tool> list2 = new List();
|
|
this.JEPPNOMJGEB = list2;
|
|
int num;
|
|
ActionEvent<Tool, PlayerToolEquipSlot> actionEvent = new ActionEvent(32, num != 0);
|
|
num = 0;
|
|
this.ToolEquipEvent = actionEvent;
|
|
int num2;
|
|
ActionEvent<Tool, PlayerToolEquipSlot> actionEvent2 = new ActionEvent(32, num2 != 0);
|
|
num2 = 0;
|
|
this.ToolUnequipEvent = actionEvent2;
|
|
int num3;
|
|
ActionEvent actionEvent3 = new ActionEvent(32, num3 != 0);
|
|
num3 = 0;
|
|
this.EquipSlotsEnabledChangedEvent = actionEvent3;
|
|
int num4;
|
|
ActionEvent actionEvent4 = new ActionEvent(32, num4 != 0);
|
|
num4 = 0;
|
|
this.EquipRestrictionsChangedEvent = actionEvent4;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400BF1F RID: 48927
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400BF1F")]
|
|
[SerializeField]
|
|
private PlayerToolEquipSlot shoulderSlot;
|
|
|
|
// Token: 0x0400BF20 RID: 48928
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400BF20")]
|
|
[SerializeField]
|
|
private PlayerToolEquipSlot leftHipSlot;
|
|
|
|
// Token: 0x0400BF21 RID: 48929
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400BF21")]
|
|
[SerializeField]
|
|
private PlayerToolEquipSlot rightHipSlot;
|
|
|
|
// Token: 0x0400BF22 RID: 48930
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x400BF22")]
|
|
private List<int> JEMJMDBKGKE;
|
|
|
|
// Token: 0x0400BF23 RID: 48931
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400BF23")]
|
|
private List<Tool> JEPPNOMJGEB;
|
|
|
|
// Token: 0x0400BF25 RID: 48933
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400BF25")]
|
|
public ActionEvent<Tool, PlayerToolEquipSlot> ToolEquipEvent;
|
|
|
|
// Token: 0x0400BF26 RID: 48934
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400BF26")]
|
|
public ActionEvent<Tool, PlayerToolEquipSlot> ToolUnequipEvent;
|
|
|
|
// Token: 0x0400BF27 RID: 48935
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400BF27")]
|
|
public ActionEvent EquipSlotsEnabledChangedEvent;
|
|
|
|
// Token: 0x0400BF28 RID: 48936
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400BF28")]
|
|
public ActionEvent EquipRestrictionsChangedEvent;
|
|
}
|
|
}
|