Use native configuration diff and source evidence
This commit is contained in:
@@ -22,6 +22,7 @@ const (
|
||||
// CanonicalParty is the normalized domain value for narratio.party.v1.
|
||||
type CanonicalParty struct {
|
||||
Characters []PartyCharacter
|
||||
authoring *configkit.Result[partyDocument]
|
||||
}
|
||||
|
||||
// PartyCharacter is one ordered character declaration from a canonical party.
|
||||
@@ -244,7 +245,7 @@ func canonicalPartyFromResult(result *configkit.Result[partyDocument]) *Canonica
|
||||
}
|
||||
return ordered[left].id < ordered[right].id
|
||||
})
|
||||
party := &CanonicalParty{Characters: make([]PartyCharacter, 0, len(ordered))}
|
||||
party := &CanonicalParty{Characters: make([]PartyCharacter, 0, len(ordered)), authoring: result}
|
||||
for _, orderedCharacter := range ordered {
|
||||
input := result.Config.Characters[orderedCharacter.id]
|
||||
classes := make([]PartyClass, len(input.Character.Classes))
|
||||
|
||||
Reference in New Issue
Block a user