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

72 lines
2.5 KiB
C#

using System;
using System.Text;
using Cpp2IlInjected;
using MarsSDK;
using Newtonsoft.Json;
// Token: 0x0200013B RID: 315
[Token(Token = "0x200013B")]
public class GameDataProvider
{
// Token: 0x06000F5F RID: 3935 RVA: 0x00024A60 File Offset: 0x00022C60
[Token(Token = "0x6000F5F")]
[Address(RVA = "0x4FFDC0", Offset = "0x4FE5C0", VA = "0x1804FFDC0")]
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: 0x06000F60 RID: 3936 RVA: 0x00024AAC File Offset: 0x00022CAC
[Token(Token = "0x6000F60")]
[Address(RVA = "0x4FFC80", Offset = "0x4FE480", VA = "0x1804FFC80")]
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: 0x06000F61 RID: 3937 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000F61")]
[Address(RVA = "0x376120", Offset = "0x374920", VA = "0x180376120")]
public T GetData<T>(byte[] cpp2il__autoParamName__idx_0)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000F62 RID: 3938 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000F62")]
[Address(RVA = "0x4FFD40", Offset = "0x4FE540", VA = "0x1804FFD40")]
public string Serialize(object data, bool indent)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06000F63 RID: 3939 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6000F63")]
[Address(RVA = "0x3760A0", Offset = "0x3748A0", VA = "0x1803760A0")]
public T Deserialize<T>(string data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x04001ADC RID: 6876
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001ADC")]
private readonly AESCryptography aes;
// Token: 0x04001ADD RID: 6877
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001ADD")]
private JsonSerializerSettings settings;
}