using System; using System.Runtime.InteropServices; using Cpp2IlInjected; using UnityEngine; namespace RecRoom.Consumable { // Token: 0x02002132 RID: 8498 [Token(Token = "0x2002132")] [StructLayout(3)] public abstract class ConsumableItem : MonoBehaviour, IComparable { // Token: 0x17002722 RID: 10018 // (get) Token: 0x0600EA5D RID: 59997 RVA: 0x00378DE4 File Offset: 0x00376FE4 [Token(Token = "0x17002722")] public string KENGPMDDCML { [Token(Token = "0x600EA5D")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.friendlyName; } } // Token: 0x17002723 RID: 10019 // (get) Token: 0x0600EA5E RID: 59998 RVA: 0x00378DF8 File Offset: 0x00376FF8 [Token(Token = "0x17002723")] public ConsumableManager.KIDKMAOBOIG GMMAAAGFAKO { [Token(Token = "0x600EA5E")] [Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")] get { return this.category; } } // Token: 0x17002724 RID: 10020 // (get) Token: 0x0600EA5F RID: 59999 RVA: 0x00378E0C File Offset: 0x0037700C [Token(Token = "0x17002724")] public string HAKADJAKPDO { [Token(Token = "0x600EA5F")] [Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")] get { return this.guidString; } } // Token: 0x17002725 RID: 10021 // (get) Token: 0x0600EA60 RID: 60000 RVA: 0x00378E20 File Offset: 0x00377020 [Token(Token = "0x17002725")] public int KFAAPLBOPPF { [Token(Token = "0x600EA60")] [Address(RVA = "0x3EDF60", Offset = "0x3EC960", VA = "0x1803EDF60")] get { return this.limitCount; } } // Token: 0x17002726 RID: 10022 // (get) Token: 0x0600EA61 RID: 60001 RVA: 0x00378E34 File Offset: 0x00377034 [Token(Token = "0x17002726")] public ConsumableManager.FFCJLEMFFAJ NLFGJKJJFFO { [Token(Token = "0x600EA61")] [Address(RVA = "0x621DB0", Offset = "0x6207B0", VA = "0x180621DB0")] get { return this.limitType; } } // Token: 0x17002727 RID: 10023 // (get) Token: 0x0600EA62 RID: 60002 RVA: 0x00378E48 File Offset: 0x00377048 [Token(Token = "0x17002727")] public bool IPAFOLPNGFD { [Token(Token = "0x600EA62")] [Address(RVA = "0x52F470", Offset = "0x52DE70", VA = "0x18052F470")] get { return this.autoActivateNextItem; } } // Token: 0x17002728 RID: 10024 // (get) Token: 0x0600EA63 RID: 60003 RVA: 0x00378E5C File Offset: 0x0037705C [Token(Token = "0x17002728")] public Transform MLDAPHCKOKF { [Token(Token = "0x600EA63")] [Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")] get { return this.visualRoot; } } // Token: 0x17002729 RID: 10025 // (get) Token: 0x0600EA64 RID: 60004 RVA: 0x00378E70 File Offset: 0x00377070 [Token(Token = "0x17002729")] public ConsumableTool MIJHIIPIIGO { [Token(Token = "0x600EA64")] [Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")] get { return this.consumableTool; } } // Token: 0x1700272A RID: 10026 // (get) Token: 0x0600EA65 RID: 60005 RVA: 0x00378E84 File Offset: 0x00377084 [Token(Token = "0x1700272A")] public GameObject IMNJKLMBGEO { [Token(Token = "0x600EA65")] [Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740")] get { return this.effectPrefab; } } // Token: 0x0600EA66 RID: 60006 RVA: 0x00378E98 File Offset: 0x00377098 [Token(Token = "0x600EA66")] [Address(RVA = "0x166B260", Offset = "0x1669C60", VA = "0x18166B260", Slot = "4")] public int CompareTo(ConsumableItem HPKICPNGMDJ) { do { int num = 0; if (HPKICPNGMDJ == num) { return 0; } } while (this.category != ConsumableManager.KIDKMAOBOIG.CameraFilter); string text = this.friendlyName; string text2 = HPKICPNGMDJ.friendlyName; return text.CompareTo(text2); } // Token: 0x0600EA67 RID: 60007 RVA: 0x00378ED8 File Offset: 0x003770D8 [Token(Token = "0x600EA67")] [Address(RVA = "0x166B310", Offset = "0x1669D10", VA = "0x18166B310", Slot = "5")] public virtual ConsumableInfo ToConsumableInfo() { /* An exception occurred when decompiling this method (0600EA67) 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: 0x0600EA68 RID: 60008 RVA: 0x00378EEC File Offset: 0x003770EC [Token(Token = "0x600EA68")] [Address(RVA = "0x1AAEFA0", Offset = "0x1AAD9A0", VA = "0x181AAEFA0")] protected void DKBOALDPDAN(ref T DBDDKLHPNNA) where T : ConsumableInfo { string name = base.gameObject.name; ConsumableTool consumableTool = this.consumableTool; if (consumableTool != 0) { string name2 = consumableTool.name; } } // Token: 0x0600EA69 RID: 60009 RVA: 0x00378F20 File Offset: 0x00377120 [Token(Token = "0x600EA69")] [Address(RVA = "0x1662EB0", Offset = "0x16618B0", VA = "0x181662EB0")] protected ConsumableItem() { Guid guid = Guid.NewGuid(); string text; this.guidString = text; this.limitCount = (int)((ulong)1L); base..ctor(); } // Token: 0x04009B3A RID: 39738 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4009B3A")] [SerializeField] protected string friendlyName; // Token: 0x04009B3B RID: 39739 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4009B3B")] [SerializeField] protected ConsumableManager.KIDKMAOBOIG category; // Token: 0x04009B3C RID: 39740 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4009B3C")] [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: 0x04009B3D RID: 39741 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4009B3D")] [SerializeField] [Header("Usage limits.")] protected int limitCount; // Token: 0x04009B3E RID: 39742 [global::Cpp2IlInjected.FieldOffset(Offset = "0x34")] [Token(Token = "0x4009B3E")] [SerializeField] protected ConsumableManager.FFCJLEMFFAJ limitType; // Token: 0x04009B3F RID: 39743 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4009B3F")] [SerializeField] protected bool autoActivateNextItem; // Token: 0x04009B40 RID: 39744 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4009B40")] [SerializeField] [Header("Visual for the boxes.")] protected Transform visualRoot; // Token: 0x04009B41 RID: 39745 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x4009B41")] [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: 0x04009B42 RID: 39746 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x4009B42")] [SerializeField] [Tooltip("This prefab will be spawned under the ConsumableEffect to add additional functionality.")] protected GameObject effectPrefab; } }