CultCache: [CultIndex] is unique at commit and load; grouping and selection declarations become [CultRole]

RefuseIndexSharing in Resolve judges every admission; _indexes holds one key per value; cacheless writes and moved-file writes of unique-indexed types are refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Libby 2026-11-11 00:49:52 +00:00
commit 46a40e774b
19 changed files with 460 additions and 245 deletions

View file

@ -586,11 +586,11 @@ namespace GameCult.Networking.Tests
public string Name = string.Empty;
[Key(1)]
[CultIndex("kind")]
[CultRole("kind")]
public string Kind = string.Empty;
[Key(2)]
[CultIndex("mass")]
[CultRole("mass")]
public float Mass;
}
@ -631,7 +631,7 @@ namespace GameCult.Networking.Tests
public string Name = string.Empty;
[Key(1)]
[CultIndex("narrow_ref")]
[CultRole("narrow_ref")]
[CultReference(typeof(ParityLeafA))]
public CultRecordRef<ParityLeafA> NarrowRef;
}