72 lines
2.5 KiB
C#
72 lines
2.5 KiB
C#
using System;
|
|
using System.Text;
|
|
using Cpp2IlInjected;
|
|
using MarsSDK;
|
|
using Newtonsoft.Json;
|
|
|
|
// Token: 0x02000136 RID: 310
|
|
[Token(Token = "0x2000136")]
|
|
public class GameDataProvider
|
|
{
|
|
// Token: 0x06000F47 RID: 3911 RVA: 0x000244F0 File Offset: 0x000226F0
|
|
[Token(Token = "0x6000F47")]
|
|
[Address(RVA = "0x53D4D0", Offset = "0x53C2D0", VA = "0x18053D4D0")]
|
|
public GameDataProvider()
|
|
{
|
|
AESCryptography aescryptography = new AESCryptography("vckiTpRHOzjVf+5/+d9EIw==", "zXKcTMyXoZAtt4f0XXsQ2Q==");
|
|
this.aes = aescryptography;
|
|
JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings();
|
|
int num = 0;
|
|
jsonSerializerSettings.Formatting = (Formatting)num;
|
|
jsonSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
|
|
this.settings = jsonSerializerSettings;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06000F48 RID: 3912 RVA: 0x0002453C File Offset: 0x0002273C
|
|
[Token(Token = "0x6000F48")]
|
|
[Address(RVA = "0x53D390", Offset = "0x53C190", VA = "0x18053D390")]
|
|
public byte[] GetBytes(object source)
|
|
{
|
|
JsonSerializerSettings jsonSerializerSettings = this.settings;
|
|
int num = 0;
|
|
string text = JsonConvert.SerializeObject(source, (Formatting)num, jsonSerializerSettings);
|
|
byte[] bytes = Encoding.UTF8.GetBytes(text);
|
|
return this.aes.Encrypt(bytes);
|
|
}
|
|
|
|
// Token: 0x06000F49 RID: 3913 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F49")]
|
|
[Address(RVA = "0x2D1370", Offset = "0x2D0170", VA = "0x1802D1370")]
|
|
public T GetData<T>(byte[] cpp2il__autoParamName__idx_0)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F4A RID: 3914 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F4A")]
|
|
[Address(RVA = "0x53D450", Offset = "0x53C250", VA = "0x18053D450")]
|
|
public string Serialize(object data, bool indent)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06000F4B RID: 3915 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6000F4B")]
|
|
[Address(RVA = "0x2D12F0", Offset = "0x2D00F0", VA = "0x1802D12F0")]
|
|
public T Deserialize<T>(string data)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04001AB1 RID: 6833
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001AB1")]
|
|
private readonly AESCryptography aes;
|
|
|
|
// Token: 0x04001AB2 RID: 6834
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001AB2")]
|
|
private JsonSerializerSettings settings;
|
|
}
|