Adopt location registry durable contract

This commit is contained in:
2026-08-05 19:05:42 +00:00
parent 2f61118e78
commit c006b163d5
41 changed files with 196 additions and 196 deletions

View File

@@ -152,7 +152,7 @@ func appendSceneDescriptionLists(values []dnd.SceneDescriptionList) (dnd.SceneDe
return combined, nil
}
func appendLocationLists(values []dnd.LocationList) (dnd.LocationList, error) {
func appendLocationRegistries(values []dnd.LocationRegistry) (dnd.LocationRegistry, error) {
count := 0
present := false
for _, value := range values {
@@ -162,9 +162,9 @@ func appendLocationLists(values []dnd.LocationList) (dnd.LocationList, error) {
count += len(value.Locations)
}
if !present {
return dnd.LocationList{}, nil
return dnd.LocationRegistry{}, nil
}
combined := dnd.LocationList{Locations: make([]dnd.Location, 0, count)}
combined := dnd.LocationRegistry{Locations: make([]dnd.Location, 0, count)}
for _, value := range values {
for _, location := range value.Locations {
combined.Locations = append(combined.Locations, cloneLocation(location))