18 lines
688 B
Go
18 lines
688 B
Go
package config
|
|
|
|
// classifyLegacyPartyDocument is the bounded compatibility path for an
|
|
// unversioned party source. It intentionally retains no parsed roster data and
|
|
// must be removed once legacy campaign inputs are no longer supported.
|
|
func classifyLegacyPartyDocument() *PartyDocument {
|
|
return &PartyDocument{Mode: PartyModeLegacy}
|
|
}
|
|
|
|
// resolveLegacyParty preserves the deliberately opaque legacy party mode.
|
|
// This small compatibility surface is intended for removal once legacy
|
|
// campaign inputs are no longer supported.
|
|
func resolveLegacyParty(resolved ResolvedParty) (ResolvedParty, error) {
|
|
resolved.Mode = PartyModeLegacy
|
|
resolved.Canonical = nil
|
|
return resolved, nil
|
|
}
|