mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 15:38:45 -07:00
d471b418b9
Targets Rec Room 2020.03.10 client (also serves 2020.03.06).
Re-import after adding:
- DorkNet.ClientMod/dorknet-clientmod.json.template — config schema
the launcher's manifest-driven patcher renders into UserData/.
- tools/build-patcher-zip.ps1 — produces dorknet-clientpatch-{key}.zip
for v1-march-* Release uploads.
- .github/workflows/release.yml — on tag push publishes both
dorknet-server-march_2020_03_10-win-x64.zip and
dorknet-clientpatch-march_2020_03_10.zip as Release assets.
Same scrub rules as december; tools/build-patcher-zip.ps1 added to
the maintainer-side allow-list so it survives.
47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace DorkNet.Models.Players;
|
|
|
|
/// <summary>
|
|
/// RecNet.ModerationBlockDetail — dump.cs:583626, Deserialize at RVA 0x1450830.
|
|
///
|
|
/// Verified by disassembly. Required keys (Util.GetKey, throws if missing):
|
|
/// ReportCategory (int), Duration (int), GameSessionId (long), Message (string).
|
|
/// Optional keys (Util.GetKeyOrDefault):
|
|
/// IsHostKick (bool, default false), IsBan (bool, default false),
|
|
/// PlayerIdReporter (Nullable<int>, default null).
|
|
///
|
|
/// Returned by:
|
|
/// GET api.rec.net/api/PlayerReporting/v1/moderationBlockDetails
|
|
/// (Single object, NOT a list — the client method GetModerationBlockDetails
|
|
/// returns IPromise<ModerationBlockDetail>.)
|
|
///
|
|
/// To indicate "user is not blocked": ReportCategory=0, Duration=0,
|
|
/// GameSessionId=0, Message="", IsBan=false, IsHostKick=false,
|
|
/// PlayerIdReporter=null.
|
|
/// </summary>
|
|
public class ModerationBlockDetail
|
|
{
|
|
// PlayerReporting.ReportCategory enum (int)
|
|
[JsonPropertyName("ReportCategory")]
|
|
public int ReportCategory { get; set; } = 0;
|
|
|
|
[JsonPropertyName("Duration")]
|
|
public int Duration { get; set; } = 0;
|
|
|
|
[JsonPropertyName("GameSessionId")]
|
|
public long GameSessionId { get; set; } = 0;
|
|
|
|
[JsonPropertyName("Message")]
|
|
public string Message { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("IsHostKick")]
|
|
public bool IsHostKick { get; set; } = false;
|
|
|
|
[JsonPropertyName("PlayerIdReporter")]
|
|
public int? PlayerIdReporter { get; set; } = null;
|
|
|
|
[JsonPropertyName("IsBan")]
|
|
public bool IsBan { get; set; } = false;
|
|
}
|