using System; using System.Collections.Generic; using RecNet; namespace RecRoom.Challenges { // Token: 0x02000B39 RID: 2873 public class ConstantNumResolver : NumResolver where T : struct, IConvertible { // Token: 0x06015BC4 RID: 89028 RVA: 0x006071C8 File Offset: 0x006053C8 public ConstantNumResolver() { } // Token: 0x06015BC5 RID: 89029 RVA: 0x006071EC File Offset: 0x006053EC public ConstantNumResolver(T constantValue) { this.ConstantValue = constantValue; } // Token: 0x1700091D RID: 2333 // (get) Token: 0x06015BC6 RID: 89030 RVA: 0x00607218 File Offset: 0x00605418 public override NumResolverTypes NumResolverType { get { return NumResolverTypes.Constant; } } // Token: 0x06015BC7 RID: 89031 RVA: 0x0060721C File Offset: 0x0060541C public override T? GetValue(ChallengeEvents.IChallengeEventData eventData) { return new T?(this.ConstantValue); } // Token: 0x06015BC8 RID: 89032 RVA: 0x0060722C File Offset: 0x0060542C public override Dictionary Serialize() { Dictionary dictionary = base.Serialize(); dictionary["c"] = this.ConstantValue; return dictionary; } // Token: 0x06015BC9 RID: 89033 RVA: 0x00607258 File Offset: 0x00605458 public override void Deserialize(Dictionary jsonDict) { this.ConstantValue = OFPFHHLNHIC.KOFIKGFMMKD("c", jsonDict); } // Token: 0x04003CC5 RID: 15557 public T ConstantValue = default(T); // Token: 0x04003CC6 RID: 15558 protected const string CONSTANT_KEY = "c"; } }