Skip to content

Cheating Reporting

Elijah Brown edited this page Apr 10, 2024 · 4 revisions

image

About Module

This module allows you to send cheating / custom reports to your server where you can track and manage them. You can easily use it for normal user feedback as well.

Note that for this module to work, you need to implement your own message reception on your server side. You can also see how it works in the server side examples here.

Get Started

Setup Backend URL at GameShield Wizzard or in Config scriptable object:
Game Shield Wizzard

To send custom requests - use an event call:

EventMessenger.Main.Publish(new ReportingPayload {
    Data = new ReportData {
        // Your Data Here
    },
    OnComplete = response => {
        // Response Processing
    },
    OnError = error => {
        // Error Processing
    }
});

You can Manage and Extend Data Model at ReportData.cs:

// Basic Model
[System.Serializable]
public class ReportData
{
    public string Gateway = "";
    public bool IsUserReport = false;
    public DateTime LocalTime = DateTime.Now;
    public string Message = "";
    public string ModuleType = "";
    public string Code = "";
}

Or just see the example scene (ReportView.prefab):
Cheat Reporting Example Scene

GameShield Wiki