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:
parent
44149afb7b
commit
46a40e774b
19 changed files with 460 additions and 245 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue