Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

260 lines
9.1 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Consumable
{
// Token: 0x02002406 RID: 9222
[Token(Token = "0x2002406")]
public abstract class ConsumableItem : MonoBehaviour, IComparable<ConsumableItem>
{
// Token: 0x17002563 RID: 9571
// (get) Token: 0x0600EA85 RID: 60037 RVA: 0x0035E4F0 File Offset: 0x0035C6F0
[Token(Token = "0x17002563")]
public string KENGPMDDCML
{
[Token(Token = "0x600EA85")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.friendlyName;
}
}
// Token: 0x17002564 RID: 9572
// (get) Token: 0x0600EA86 RID: 60038 RVA: 0x0035E504 File Offset: 0x0035C704
[Token(Token = "0x17002564")]
public ConsumableManager.KIDKMAOBOIG GMMAAAGFAKO
{
[Token(Token = "0x600EA86")]
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")]
get
{
return this.category;
}
}
// Token: 0x17002565 RID: 9573
// (get) Token: 0x0600EA87 RID: 60039 RVA: 0x0035E518 File Offset: 0x0035C718
[Token(Token = "0x17002565")]
public string HAKADJAKPDO
{
[Token(Token = "0x600EA87")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
get
{
return this.guidString;
}
}
// Token: 0x17002566 RID: 9574
// (get) Token: 0x0600EA88 RID: 60040 RVA: 0x0035E52C File Offset: 0x0035C72C
[Token(Token = "0x17002566")]
public int KFAAPLBOPPF
{
[Token(Token = "0x600EA88")]
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0")]
get
{
return this.limitCount;
}
}
// Token: 0x17002567 RID: 9575
// (get) Token: 0x0600EA89 RID: 60041 RVA: 0x0035E540 File Offset: 0x0035C740
[Token(Token = "0x17002567")]
public ConsumableManager.FFCJLEMFFAJ NLFGJKJJFFO
{
[Token(Token = "0x600EA89")]
[Address(RVA = "0x4D9880", Offset = "0x4D8880", VA = "0x1804D9880")]
get
{
return this.limitType;
}
}
// Token: 0x17002568 RID: 9576
// (get) Token: 0x0600EA8A RID: 60042 RVA: 0x0035E554 File Offset: 0x0035C754
[Token(Token = "0x17002568")]
public bool IPAFOLPNGFD
{
[Token(Token = "0x600EA8A")]
[Address(RVA = "0x417650", Offset = "0x416650", VA = "0x180417650")]
get
{
return this.autoActivateNextItem;
}
}
// Token: 0x17002569 RID: 9577
// (get) Token: 0x0600EA8B RID: 60043 RVA: 0x0035E568 File Offset: 0x0035C768
[Token(Token = "0x17002569")]
public Transform MLDAPHCKOKF
{
[Token(Token = "0x600EA8B")]
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
get
{
return this.visualRoot;
}
}
// Token: 0x1700256A RID: 9578
// (get) Token: 0x0600EA8C RID: 60044 RVA: 0x0035E57C File Offset: 0x0035C77C
[Token(Token = "0x1700256A")]
public ConsumableTool MIJHIIPIIGO
{
[Token(Token = "0x600EA8C")]
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
get
{
return this.consumableTool;
}
}
// Token: 0x1700256B RID: 9579
// (get) Token: 0x0600EA8D RID: 60045 RVA: 0x0035E590 File Offset: 0x0035C790
[Token(Token = "0x1700256B")]
public GameObject IMNJKLMBGEO
{
[Token(Token = "0x600EA8D")]
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0")]
get
{
return this.effectPrefab;
}
}
// Token: 0x0600EA8E RID: 60046 RVA: 0x0035E5A4 File Offset: 0x0035C7A4
[Token(Token = "0x600EA8E")]
[Address(RVA = "0x1D88E50", Offset = "0x1D87E50", VA = "0x181D88E50", Slot = "4")]
public int CompareTo(ConsumableItem HPKICPNGMDJ)
{
int num2;
do
{
int num = 0;
if (HPKICPNGMDJ == num)
{
return 0;
}
ConsumableManager.KIDKMAOBOIG kidkmaoboig = this.category;
}
while (num2 != 0);
string text = this.friendlyName;
string text2 = HPKICPNGMDJ.friendlyName;
return text.CompareTo(text2);
}
// Token: 0x0600EA8F RID: 60047 RVA: 0x0035E5E8 File Offset: 0x0035C7E8
[Token(Token = "0x600EA8F")]
[Address(RVA = "0x1D88F00", Offset = "0x1D87F00", VA = "0x181D88F00", Slot = "5")]
public virtual ConsumableInfo ToConsumableInfo()
{
/*
An exception occurred when decompiling this method (0600EA8F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling RecRoom.Consumable.ConsumableInfo RecRoom.Consumable.ConsumableItem::ToConsumableInfo()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:GenericConsumableInfo(var_1_05, newobj:GenericConsumableInfo(GenericConsumableInfo::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x0600EA90 RID: 60048 RVA: 0x0035E5FC File Offset: 0x0035C7FC
[Token(Token = "0x600EA90")]
[Address(RVA = "0x21763C0", Offset = "0x21753C0", VA = "0x1821763C0")]
protected void DKBOALDPDAN<T>(ref T DBDDKLHPNNA) where T : ConsumableInfo
{
string name = base.gameObject.name;
ConsumableTool consumableTool = this.consumableTool;
if (consumableTool != 0)
{
string name2 = consumableTool.name;
}
}
// Token: 0x0600EA91 RID: 60049 RVA: 0x0035E630 File Offset: 0x0035C830
[Token(Token = "0x600EA91")]
[Address(RVA = "0x1D88F80", Offset = "0x1D87F80", VA = "0x181D88F80")]
protected ConsumableItem()
{
Guid guid = Guid.NewGuid();
string text;
this.guidString = text;
this.limitCount = (int)((ulong)1L);
base..ctor();
}
// Token: 0x04009A39 RID: 39481
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4009A39")]
[SerializeField]
protected string friendlyName;
// Token: 0x04009A3A RID: 39482
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4009A3A")]
[SerializeField]
protected ConsumableManager.KIDKMAOBOIG category;
// Token: 0x04009A3B RID: 39483
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4009A3B")]
[SerializeField]
[Tooltip("This guid is auto generated at the time of the prefab creation and should never change if you do not want to break an existing players consumables.")]
protected string guidString;
// Token: 0x04009A3C RID: 39484
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4009A3C")]
[SerializeField]
[Header("Usage limits.")]
protected int limitCount;
// Token: 0x04009A3D RID: 39485
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4009A3D")]
[SerializeField]
protected ConsumableManager.FFCJLEMFFAJ limitType;
// Token: 0x04009A3E RID: 39486
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4009A3E")]
[SerializeField]
protected bool autoActivateNextItem;
// Token: 0x04009A3F RID: 39487
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4009A3F")]
[SerializeField]
[Header("Visual for the boxes.")]
protected Transform visualRoot;
// Token: 0x04009A40 RID: 39488
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4009A40")]
[SerializeField]
[Tooltip("If there is a custom consumable tool to activate the effect mapping, assign it here. This tool will replace the default tool and will be spawned whenever necessary.")]
protected ConsumableTool consumableTool;
// Token: 0x04009A41 RID: 39489
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4009A41")]
[SerializeField]
[Tooltip("This prefab will be spawned under the ConsumableEffect to add additional functionality.")]
protected GameObject effectPrefab;
}
}