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:
Alexa
2026-05-27 01:04:12 +03:00
commit 4edf25b2d5
375 changed files with 201291 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;
}
+64
View File
@@ -0,0 +1,64 @@
using System.Text.Json.Serialization;
namespace DorkNet.Models.Players;
public class PlayerProfile
{
private string? profileImage;
[JsonPropertyName("AccountId")]
public long AccountId { get; set; }
[JsonPropertyName("Username")]
public string Username { get; set; } = string.Empty;
[JsonPropertyName("DisplayName")]
public string DisplayName { get; set; } = string.Empty;
[JsonPropertyName("ProfileImage")]
public string? ProfileImage
{
get => profileImage;
set => profileImage = value;
}
[JsonPropertyName("ProfileImageName")]
public string? ProfileImageName
{
get => profileImage;
set => profileImage = value;
}
[JsonPropertyName("BannerImage")]
public string? BannerImage { get; set; }
[JsonPropertyName("IsJunior")]
public bool IsJunior { get; set; } = false;
[JsonPropertyName("Level")]
public int Level { get; set; } = 1;
[JsonPropertyName("XP")]
public int XP { get; set; } = 0;
[JsonPropertyName("Reputation")]
public int Reputation { get; set; } = 0;
[JsonPropertyName("Bio")]
public string Bio { get; set; } = string.Empty;
[JsonPropertyName("IsVerified")]
public bool IsVerified { get; set; } = false;
[JsonPropertyName("IsDeveloper")]
public bool IsDeveloper { get; set; } = false;
[JsonPropertyName("IsCommunityTeam")]
public bool IsCommunityTeam { get; set; } = false;
[JsonPropertyName("CanReceiveInvites")]
public bool CanReceiveInvites { get; set; } = true;
[JsonPropertyName("CreatedAt")]
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
+26
View File
@@ -0,0 +1,26 @@
using System.Text.Json.Serialization;
namespace DorkNet.Models.Players;
/// <summary>
/// RecNet.Progression — dump.cs:582273, Deserialize at RVA 0x1142BB0.
///
/// Verified by disassembly: reads "PlayerId", "Level", "XP" via
/// Util.GetKey&lt;int&gt;. All three keys are required (non-default) — missing
/// any of them throws KeyNotFoundException at the client.
///
/// Note: the JSON uses "PlayerId" not "AccountId" even though the C# property
/// is AccountId on most other types. Returned by:
/// GET api.rec.net/api/players/v1/progression/{accountId}
/// </summary>
public class Progression
{
[JsonPropertyName("PlayerId")]
public int PlayerId { get; set; }
[JsonPropertyName("Level")]
public int Level { get; set; } = 1;
[JsonPropertyName("XP")]
public int XP { get; set; } = 0;
}
+56
View File
@@ -0,0 +1,56 @@
using System.Text.Json.Serialization;
namespace DorkNet.Models.Players;
/// <summary>
/// RecNet.Reputation — dump.cs:584087, Deserialize at RVA 0x114A830.
///
/// Verified by disassembly. ALL Cheer*/Subscriber* keys are required
/// (Util.GetKey&lt;int&gt;), missing any throws KeyNotFoundException.
/// "SelectedCheer" is the only optional one (Util.GetKeyOrDefault&lt;Nullable&lt;int&gt;&gt;).
///
/// CRITICAL TYPO: the JSON key is "Noteriety" — the dev mistyped "Notoriety".
/// The C# property is named Notoriety in dump.cs (line 584117) but the dict
/// lookup uses "Noteriety". Server response MUST match the typo.
///
/// Returned by:
/// GET api.rec.net/api/playerReputation/v1/{accountId}
/// </summary>
public class Reputation
{
[JsonPropertyName("AccountId")]
public int AccountId { get; set; }
// sic: see class XML doc — typo in the binary's Util.GetKey call.
[JsonPropertyName("Noteriety")]
public float Notoriety { get; set; } = 0f;
[JsonPropertyName("CheerGeneral")]
public int CheerGeneral { get; set; }
[JsonPropertyName("CheerHelpful")]
public int CheerHelpful { get; set; }
[JsonPropertyName("CheerGreatHost")]
public int CheerGreatHost { get; set; }
[JsonPropertyName("CheerSportsman")]
public int CheerSportsman { get; set; }
[JsonPropertyName("CheerCreative")]
public int CheerCreative { get; set; }
[JsonPropertyName("CheerCredit")]
public int CheerCredit { get; set; }
[JsonPropertyName("SubscriberCount")]
public int SubscriberCount { get; set; }
[JsonPropertyName("SubscribedCount")]
public int SubscribedCount { get; set; }
// PlayerCheering.CheerCategory enum (int) — Nullable; null means "no
// active cheer set". This is the only optional key.
[JsonPropertyName("SelectedCheer")]
public int? SelectedCheer { get; set; } = null;
}
@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace DorkNet.Models.Players;
public class UpdateProfileRequest
{
[JsonPropertyName("DisplayName")]
public string? DisplayName { get; set; }
[JsonPropertyName("Bio")]
public string? Bio { get; set; }
}