Files
NobetaSource/Cpp2IL/Assembly-CSharp/LootBoxController.cs
2023-09-06 22:09:22 +02:00

166 lines
4.8 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000332 RID: 818
[Token(Token = "0x2000332")]
public class LootBoxController : MonoBehaviour
{
// Token: 0x0600207B RID: 8315 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600207B")]
[Address(RVA = "0x422C30", Offset = "0x421430", VA = "0x180422C30")]
private void Start()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600207C RID: 8316 RVA: 0x0004DE2C File Offset: 0x0004C02C
[Token(Token = "0x600207C")]
[Address(RVA = "0x4227D0", Offset = "0x420FD0", VA = "0x1804227D0")]
private void OnMouseDown()
{
if (!this.isOpened)
{
IEnumerator enumerator = this.PlayFx();
Coroutine coroutine = base.StartCoroutine(enumerator);
return;
}
}
// Token: 0x0600207D RID: 8317 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600207D")]
[Address(RVA = "0x422800", Offset = "0x421000", VA = "0x180422800")]
private IEnumerator PlayFx()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600207E RID: 8318 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600207E")]
[Address(RVA = "0x422870", Offset = "0x421070", VA = "0x180422870")]
private IEnumerator PlayIcon()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600207F RID: 8319 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600207F")]
[Address(RVA = "0x4226B0", Offset = "0x420EB0", VA = "0x1804226B0")]
public void ChangedFx(int i)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002080 RID: 8320 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002080")]
[Address(RVA = "0x422AF0", Offset = "0x4212F0", VA = "0x180422AF0")]
public void SetupVfx()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002081 RID: 8321 RVA: 0x0004DE54 File Offset: 0x0004C054
[Token(Token = "0x6002081")]
[Address(RVA = "0x4227D0", Offset = "0x420FD0", VA = "0x1804227D0")]
public void PlayAllVfx()
{
if (!this.isOpened)
{
IEnumerator enumerator = this.PlayFx();
Coroutine coroutine = base.StartCoroutine(enumerator);
return;
}
}
// Token: 0x06002082 RID: 8322 RVA: 0x0004DE7C File Offset: 0x0004C07C
[Token(Token = "0x6002082")]
[Address(RVA = "0x4228E0", Offset = "0x4210E0", VA = "0x1804228E0")]
public void ResetVfx()
{
GameObject[] array = GameObject.FindGameObjectsWithTag("Effects");
this.DesFxObjs = array;
GameObject[] desFxObjs = this.DesFxObjs;
int num = 0;
int length = desFxObjs.Length;
if (num < length)
{
UnityEngine.Object.Destroy(desFxObjs[num].gameObject);
num++;
}
this.isOpened = num != 0;
GameObject[] array2 = GameObject.FindGameObjectsWithTag("Icon");
this.DesIconObjs = array2;
GameObject[] desIconObjs = this.DesIconObjs;
int length2 = desIconObjs.Length;
if (num < length2)
{
UnityEngine.Object.Destroy(desIconObjs[num].gameObject);
num++;
}
int num2;
LootBoxController.<PlayIcon>d__13 <PlayIcon>d__ = new LootBoxController.<PlayIcon>d__13(num2);
num2 = 0;
<PlayIcon>d__.<>4__this = this;
Coroutine coroutine = base.StartCoroutine(<PlayIcon>d__);
}
// Token: 0x06002083 RID: 8323 RVA: 0x0004DF30 File Offset: 0x0004C130
[Token(Token = "0x6002083")]
[Address(RVA = "0x33E460", Offset = "0x33CC60", VA = "0x18033E460")]
public LootBoxController()
{
}
// Token: 0x040029E0 RID: 10720
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40029E0")]
public int idIcon;
// Token: 0x040029E1 RID: 10721
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40029E1")]
public int idEffect;
// Token: 0x040029E2 RID: 10722
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40029E2")]
public bool isOpened;
// Token: 0x040029E3 RID: 10723
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40029E3")]
public GameObject[] IconPrefabs;
// Token: 0x040029E4 RID: 10724
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40029E4")]
public GameObject[] EffectPrefabs;
// Token: 0x040029E5 RID: 10725
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40029E5")]
public GameObject[] DesFxObjs;
// Token: 0x040029E6 RID: 10726
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40029E6")]
public GameObject[] DesIconObjs;
// Token: 0x040029E7 RID: 10727
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40029E7")]
private GameObject Lootbox;
// Token: 0x040029E8 RID: 10728
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40029E8")]
public Text effectsText;
// Token: 0x040029E9 RID: 10729
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40029E9")]
public Text nameEffectText;
}