Import march-2020-03-10 from private repo (scrubbed 2026-05-27)

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.
This commit is contained in:
Alexa
2026-05-27 01:06:12 +03:00
commit d471b418b9
389 changed files with 104767 additions and 0 deletions
@@ -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&lt;int&gt;, default null).
///
/// Returned by:
/// GET api.rec.net/api/PlayerReporting/v1/moderationBlockDetails
/// (Single object, NOT a list — the client method GetModerationBlockDetails
/// returns IPromise&lt;ModerationBlockDetail&gt;.)
///
/// 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;
}