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,33 @@
using System.ComponentModel.DataAnnotations;
namespace DorkNet.Server.Data.Entities;
/// <summary>
/// One row per (player, item) pair. Backs both the
/// <c>/api/equipment/v2/getUnlocked</c> and
/// <c>/api/consumables/v1/getUnlocked</c> endpoints — the type comes
/// from the joined <see cref="StoreItemEntity.Category"/>.
///
/// For equipment, <see cref="Quantity"/> is always 1 and
/// <see cref="IsActive"/> tracks whether it's equipped. For
/// consumables, <see cref="Quantity"/> is the stack size and
/// <see cref="IsActive"/> tracks whether the player has it favourited /
/// quick-equipped on the watch.
/// </summary>
public class PlayerInventoryEntity
{
public long Id { get; set; }
public long PlayerId { get; set; }
/// <summary>FK by string to <see cref="StoreItemEntity.Slug"/>.
/// Stored as a string rather than an int FK because a player can
/// be granted items that aren't in the live store (admin-gifted,
/// legacy retired items, etc.).</summary>
[MaxLength(64)]
public string ItemSlug { get; set; } = string.Empty;
public int Quantity { get; set; } = 1;
public bool IsActive { get; set; } = false;
public DateTime AcquiredAt { get; set; } = DateTime.UtcNow;
}