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

166 lines
4.8 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x02000329 RID: 809
[Token(Token = "0x2000329")]
public class LootBoxController : MonoBehaviour
{
// Token: 0x06002049 RID: 8265 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002049")]
[Address(RVA = "0x400560", Offset = "0x3FF360", VA = "0x180400560")]
private void Start()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600204A RID: 8266 RVA: 0x0004D374 File Offset: 0x0004B574
[Token(Token = "0x600204A")]
[Address(RVA = "0x400100", Offset = "0x3FEF00", VA = "0x180400100")]
private void OnMouseDown()
{
if (!this.isOpened)
{
IEnumerator enumerator = this.PlayFx();
Coroutine coroutine = base.StartCoroutine(enumerator);
return;
}
}
// Token: 0x0600204B RID: 8267 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600204B")]
[Address(RVA = "0x400130", Offset = "0x3FEF30", VA = "0x180400130")]
private IEnumerator PlayFx()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600204C RID: 8268 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600204C")]
[Address(RVA = "0x4001A0", Offset = "0x3FEFA0", VA = "0x1804001A0")]
private IEnumerator PlayIcon()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600204D RID: 8269 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600204D")]
[Address(RVA = "0x3FFFE0", Offset = "0x3FEDE0", VA = "0x1803FFFE0")]
public void ChangedFx(int i)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600204E RID: 8270 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x600204E")]
[Address(RVA = "0x400420", Offset = "0x3FF220", VA = "0x180400420")]
public void SetupVfx()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600204F RID: 8271 RVA: 0x0004D39C File Offset: 0x0004B59C
[Token(Token = "0x600204F")]
[Address(RVA = "0x400100", Offset = "0x3FEF00", VA = "0x180400100")]
public void PlayAllVfx()
{
if (!this.isOpened)
{
IEnumerator enumerator = this.PlayFx();
Coroutine coroutine = base.StartCoroutine(enumerator);
return;
}
}
// Token: 0x06002050 RID: 8272 RVA: 0x0004D3C4 File Offset: 0x0004B5C4
[Token(Token = "0x6002050")]
[Address(RVA = "0x400210", Offset = "0x3FF010", VA = "0x180400210")]
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: 0x06002051 RID: 8273 RVA: 0x0004D478 File Offset: 0x0004B678
[Token(Token = "0x6002051")]
[Address(RVA = "0x3088F0", Offset = "0x3076F0", VA = "0x1803088F0")]
public LootBoxController()
{
}
// Token: 0x0400299E RID: 10654
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400299E")]
public int idIcon;
// Token: 0x0400299F RID: 10655
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x400299F")]
public int idEffect;
// Token: 0x040029A0 RID: 10656
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40029A0")]
public bool isOpened;
// Token: 0x040029A1 RID: 10657
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40029A1")]
public GameObject[] IconPrefabs;
// Token: 0x040029A2 RID: 10658
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40029A2")]
public GameObject[] EffectPrefabs;
// Token: 0x040029A3 RID: 10659
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40029A3")]
public GameObject[] DesFxObjs;
// Token: 0x040029A4 RID: 10660
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40029A4")]
public GameObject[] DesIconObjs;
// Token: 0x040029A5 RID: 10661
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40029A5")]
private GameObject Lootbox;
// Token: 0x040029A6 RID: 10662
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40029A6")]
public Text effectsText;
// Token: 0x040029A7 RID: 10663
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40029A7")]
public Text nameEffectText;
}