Files
NobetaSource/Cpp2IL/Assembly-CSharp/GameDataProvider.cs
2023-09-06 22:19:13 +02:00

72 lines
2.5 KiB
C#

using System;
using System.Text;
using Cpp2IlInjected;
using MarsSDK;
using Newtonsoft.Json;
// Token: 0x02000161 RID: 353
[Token(Token = "0x2000161")]
public class GameDataProvider
{
// Token: 0x060010B4 RID: 4276 RVA: 0x00027050 File Offset: 0x00025250
[Token(Token = "0x60010B4")]
[Address(RVA = "0x3700E0", Offset = "0x36F0E0", VA = "0x1803700E0")]
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: 0x060010B5 RID: 4277 RVA: 0x0002709C File Offset: 0x0002529C
[Token(Token = "0x60010B5")]
[Address(RVA = "0x36FFA0", Offset = "0x36EFA0", VA = "0x18036FFA0")]
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: 0x060010B6 RID: 4278 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60010B6")]
[Address(RVA = "0x39BA60", Offset = "0x39AA60", VA = "0x18039BA60")]
public T GetData<T>(byte[] cpp2il__autoParamName__idx_0)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060010B7 RID: 4279 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60010B7")]
[Address(RVA = "0x370060", Offset = "0x36F060", VA = "0x180370060")]
public string Serialize(object data, bool indent)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060010B8 RID: 4280 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x60010B8")]
[Address(RVA = "0x39B9E0", Offset = "0x39A9E0", VA = "0x18039B9E0")]
public T Deserialize<T>(string data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x04001C17 RID: 7191
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001C17")]
private readonly AESCryptography aes;
// Token: 0x04001C18 RID: 7192
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001C18")]
private JsonSerializerSettings settings;
}