Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/Consumable/CouponConsumableInfo.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

88 lines
4.4 KiB
C#

using System;
using Cpp2IlInjected;
using RecRoom.Storefronts;
namespace RecRoom.Consumable
{
// Token: 0x02002401 RID: 9217
[Token(Token = "0x2002401")]
[Serializable]
public class CouponConsumableInfo : ConsumableInfo
{
// Token: 0x0600EA67 RID: 60007 RVA: 0x0035DD88 File Offset: 0x0035BF88
[Token(Token = "0x600EA67")]
[Address(RVA = "0x1D8EE60", Offset = "0x1D8DE60", VA = "0x181D8EE60")]
public string LNNFKDMOFDP()
{
HHOLBEMEIPH discountType = this.DiscountType;
if (discountType == HHOLBEMEIPH.PERCENTAGE)
{
int couponValue = this.CouponValue;
return string.Format("{0}%", couponValue);
}
if (discountType == HHOLBEMEIPH.EXACT_AMOUNT)
{
string tokenStringFormatted = Storefront.GetTokenStringFormatted((long)this.CouponValue);
return string.Format("-{0}", tokenStringFormatted);
}
return string.Empty;
}
// Token: 0x0600EA68 RID: 60008 RVA: 0x0035DDD4 File Offset: 0x0035BFD4
[Token(Token = "0x600EA68")]
[Address(RVA = "0x1D8EDB0", Offset = "0x1D8DDB0", VA = "0x181D8EDB0")]
public long JNLBKGLHNAF(long DENMLCGOKNK)
{
/*
An exception occurred when decompiling this method (0600EA68)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 RecRoom.Consumable.CouponConsumableInfo::JNLBKGLHNAF(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1E:
stloc:int32(var_3_1F, ldc.i4:int32(0))
stloc:int32(var_4_21, ldc.i4:int32(0))
stloc:int32(var_5_24, ldc.i4:int32(0))
stloc:float32(var_6_30, call:float32(Mathf::Clamp, ldloc:int32[exp:float32](var_4_21), ldloc:int32[exp:float32](var_5_24), ldloc:int32[exp:float32](var_3_1F)))
}
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: 0x0600EA69 RID: 60009 RVA: 0x0035DE14 File Offset: 0x0035C014
[Token(Token = "0x600EA69")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public CouponConsumableInfo()
{
}
// Token: 0x04009A2A RID: 39466
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4009A2A")]
public HHOLBEMEIPH DiscountType;
// Token: 0x04009A2B RID: 39467
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x4009A2B")]
public DGOHCPBKOHD StorefrontType;
// Token: 0x04009A2C RID: 39468
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4009A2C")]
public ACDKILABNNC CurrencyType;
// Token: 0x04009A2D RID: 39469
[FieldOffset(Offset = "0x4C")]
[Token(Token = "0x4009A2D")]
public int CouponValue;
}
}