From cf17697a5e893bba9ef8096af07d2ff189d766c1 Mon Sep 17 00:00:00 2001 From: anth64 Date: Sun, 12 Jul 2026 18:38:09 +0200 Subject: [PATCH] feat: add member claims to the ClaimLink model Each ClaimLinkMember stores an owner player uid plus that player's local claim index (resolved fresh at use, not trusted as stable) so a claim link can reference existing vanilla claims without copying their data. Buffer claim is intentionally not referenced here; it resolves on demand via group ownership. --- ClaimLink/ClaimLink.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ClaimLink/ClaimLink.cs b/ClaimLink/ClaimLink.cs index cbf4aeb..bf918f3 100644 --- a/ClaimLink/ClaimLink.cs +++ b/ClaimLink/ClaimLink.cs @@ -1,10 +1,24 @@ +using System.Collections.Generic; using ProtoBuf; namespace ClaimLink; +[ProtoContract] +public class ClaimLinkMember +{ + [ProtoMember(1)] + public string OwnerPlayerUid = ""; + + [ProtoMember(2)] + public int LocalClaimIndex; +} + [ProtoContract] public class ClaimLink { [ProtoMember(1)] public int GroupId; + + [ProtoMember(2)] + public List Members = new(); }