165 lines
5.4 KiB
C#
165 lines
5.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine;
|
|
|
|
namespace RecNet
|
|
{
|
|
// Token: 0x02000D9F RID: 3487
|
|
public static class ALCANHDBJNJ
|
|
{
|
|
// Token: 0x14000119 RID: 281
|
|
// (add) Token: 0x0601C68B RID: 116363 RVA: 0x007D9468 File Offset: 0x007D7668
|
|
// (remove) Token: 0x0601C68C RID: 116364 RVA: 0x007D949C File Offset: 0x007D769C
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public static event Action KLMBOKDHPBI;
|
|
|
|
// Token: 0x0601C68D RID: 116365 RVA: 0x007D94D0 File Offset: 0x007D76D0
|
|
public static void DMODLLAELMG()
|
|
{
|
|
HEMCJJJMLKI.KFPEBOCDGJA kfpebocdgja = HEMCJJJMLKI.KFPEBOCDGJA.ModerationQuitGame;
|
|
if (ALCANHDBJNJ.MODKICCBMGC == null)
|
|
{
|
|
ALCANHDBJNJ.MODKICCBMGC = new HEMCJJJMLKI.KIOCBMBOEEB(ALCANHDBJNJ.CCOFHMKNBIL);
|
|
}
|
|
HEMCJJJMLKI.FKIKGIBDJGH(kfpebocdgja, ALCANHDBJNJ.MODKICCBMGC);
|
|
HEMCJJJMLKI.KFPEBOCDGJA kfpebocdgja2 = HEMCJJJMLKI.KFPEBOCDGJA.ModerationUpdateRequired;
|
|
if (ALCANHDBJNJ.IFPKLMFAABE == null)
|
|
{
|
|
ALCANHDBJNJ.IFPKLMFAABE = new HEMCJJJMLKI.KIOCBMBOEEB(ALCANHDBJNJ.DMPMEDPHEMO);
|
|
}
|
|
HEMCJJJMLKI.FKIKGIBDJGH(kfpebocdgja2, ALCANHDBJNJ.IFPKLMFAABE);
|
|
}
|
|
|
|
// Token: 0x0601C68E RID: 116366 RVA: 0x007D9528 File Offset: 0x007D7728
|
|
private static void CCOFHMKNBIL(Dictionary<string, object> NFAFJOMABOK)
|
|
{
|
|
try
|
|
{
|
|
NECCOFKHCAA.NPJBHMCPBKA();
|
|
Application.Quit();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
global::UnityEngine.Debug.LogException(ex);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601C68F RID: 116367 RVA: 0x007D9560 File Offset: 0x007D7760
|
|
private static void DMPMEDPHEMO(Dictionary<string, object> NFAFJOMABOK)
|
|
{
|
|
if (ALCANHDBJNJ.KLMBOKDHPBI != null)
|
|
{
|
|
ALCANHDBJNJ.KLMBOKDHPBI();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601C690 RID: 116368 RVA: 0x007D9578 File Offset: 0x007D7778
|
|
public static IEnumerator ADHGLEABJEB(long GKPEOHGOGCF, HLAPBDKLDHG.PMEFEHPFOEJ DKAEFPFHOIN, HEMCJJJMLKI.CBJHDCMGOCN JOINLHEALDL)
|
|
{
|
|
ALCANHDBJNJ.POKNIPKNCMC poknipkncmc = new ALCANHDBJNJ.POKNIPKNCMC();
|
|
poknipkncmc.JOINLHEALDL = JOINLHEALDL;
|
|
string text = string.Format("{0}v2/ban", "api/PlayersBanned/");
|
|
ModerationManager.ReportReasonVisual vtkreasonVisual = SingletonMonoBehaviour<ModerationManager>.NCKMBFBMBFM.GetVTKReasonVisual(DKAEFPFHOIN);
|
|
string text2 = ((vtkreasonVisual == null) ? "Code of conduct violation" : vtkreasonVisual.text);
|
|
DateTime dateTime = DateTime.UtcNow.AddDays(1.0);
|
|
string text3 = string.Format("You are banned for {0}. For any questions contact support@againstgrav.com", text2);
|
|
return HEMCJJJMLKI.OANDGHDGBML(text, new Dictionary<string, string>
|
|
{
|
|
{
|
|
"PlayerId",
|
|
GKPEOHGOGCF.ToString()
|
|
},
|
|
{ "Reason", "10" },
|
|
{ "BanType", "0" },
|
|
{ "DisplayReason", text3 },
|
|
{
|
|
"BannedUntil",
|
|
dateTime.ToString("MM\\/dd\\/yyyy HH:mm")
|
|
}
|
|
}, false, new HEMCJJJMLKI.CBJHDCMGOCN(poknipkncmc.OJKNBNGGBEC));
|
|
}
|
|
|
|
// Token: 0x04004B6F RID: 19311
|
|
private const string NFDEKLJLLHG = "api/PlayersBanned/";
|
|
|
|
// Token: 0x04004B71 RID: 19313
|
|
[CompilerGenerated]
|
|
private static HEMCJJJMLKI.KIOCBMBOEEB MODKICCBMGC;
|
|
|
|
// Token: 0x04004B72 RID: 19314
|
|
[CompilerGenerated]
|
|
private static HEMCJJJMLKI.KIOCBMBOEEB IFPKLMFAABE;
|
|
|
|
// Token: 0x02000DA0 RID: 3488
|
|
[CompilerGenerated]
|
|
private sealed class POKNIPKNCMC
|
|
{
|
|
// Token: 0x0601C692 RID: 116370 RVA: 0x007D9670 File Offset: 0x007D7870
|
|
internal void CIEGOBEALHN(string DAKCKPMBKFF)
|
|
{
|
|
if (!string.IsNullOrEmpty(DAKCKPMBKFF))
|
|
{
|
|
global::UnityEngine.Debug.LogError("Cannot pre-serialize PersistenceView {0} with an empty ID" + DAKCKPMBKFF);
|
|
}
|
|
HEMCJJJMLKI.EIALMOKNFHM(this.JOINLHEALDL, DAKCKPMBKFF);
|
|
}
|
|
|
|
// Token: 0x0601C693 RID: 116371 RVA: 0x007D969C File Offset: 0x007D789C
|
|
internal void IBLIPIGAMEL(string DAKCKPMBKFF)
|
|
{
|
|
if (!string.IsNullOrEmpty(DAKCKPMBKFF))
|
|
{
|
|
global::UnityEngine.Debug.LogError("^" + DAKCKPMBKFF);
|
|
}
|
|
HEMCJJJMLKI.EIALMOKNFHM(this.JOINLHEALDL, DAKCKPMBKFF);
|
|
}
|
|
|
|
// Token: 0x0601C694 RID: 116372 RVA: 0x007D96C8 File Offset: 0x007D78C8
|
|
internal void BGEAIOGNJHN(string DAKCKPMBKFF)
|
|
{
|
|
if (!string.IsNullOrEmpty(DAKCKPMBKFF))
|
|
{
|
|
global::UnityEngine.Debug.LogError("PS4PlatformManager: NpToolkit not initialized" + DAKCKPMBKFF);
|
|
}
|
|
HEMCJJJMLKI.EIALMOKNFHM(this.JOINLHEALDL, DAKCKPMBKFF);
|
|
}
|
|
|
|
// Token: 0x0601C695 RID: 116373 RVA: 0x007D96F4 File Offset: 0x007D78F4
|
|
internal void OJKNBNGGBEC(string DAKCKPMBKFF)
|
|
{
|
|
if (!string.IsNullOrEmpty(DAKCKPMBKFF))
|
|
{
|
|
global::UnityEngine.Debug.LogError("Failed to request PlayerBan : " + DAKCKPMBKFF);
|
|
}
|
|
HEMCJJJMLKI.MKFLPKAIDDJ(this.JOINLHEALDL, DAKCKPMBKFF);
|
|
}
|
|
|
|
// Token: 0x0601C696 RID: 116374 RVA: 0x007D9720 File Offset: 0x007D7920
|
|
internal void LACKKCKOGHI(string DAKCKPMBKFF)
|
|
{
|
|
if (!string.IsNullOrEmpty(DAKCKPMBKFF))
|
|
{
|
|
global::UnityEngine.Debug.LogError("Goscurry is not a lie ;)" + DAKCKPMBKFF);
|
|
}
|
|
HEMCJJJMLKI.MKFLPKAIDDJ(this.JOINLHEALDL, DAKCKPMBKFF);
|
|
}
|
|
|
|
// Token: 0x0601C697 RID: 116375 RVA: 0x007D974C File Offset: 0x007D794C
|
|
internal void CFCEJGGFGPD(string DAKCKPMBKFF)
|
|
{
|
|
if (!string.IsNullOrEmpty(DAKCKPMBKFF))
|
|
{
|
|
global::UnityEngine.Debug.LogError("You're Out!" + DAKCKPMBKFF);
|
|
}
|
|
HEMCJJJMLKI.MKFLPKAIDDJ(this.JOINLHEALDL, DAKCKPMBKFF);
|
|
}
|
|
|
|
// Token: 0x04004B73 RID: 19315
|
|
internal HEMCJJJMLKI.CBJHDCMGOCN JOINLHEALDL;
|
|
}
|
|
}
|
|
}
|