mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Import december-2020-12-18 from private repo (scrubbed 2026-05-27)
Targets Rec Room 2020.12.18 client.
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 the dorknet-clientpatch-{key}.zip
Release asset the launcher fetches.
- .github/workflows/release.yml — auto-publishes both Release assets
on v1-december-* tag push.
Scrubbed via maintainer-side scrub-for-public.ps1: same drop rules as
the prior import, plus build-patcher-zip.ps1 added to the tools/
allow-list so it survives the scrub.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user