26 lines
748 B
Go
26 lines
748 B
Go
package npcs
|
|
|
|
import "gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/shared"
|
|
|
|
type extractionResponse struct {
|
|
NPCs []npcResponse `json:"npcs"`
|
|
}
|
|
|
|
type npcResponse struct {
|
|
Name string `json:"name"`
|
|
Aliases []string `json:"aliases"`
|
|
Description string `json:"description"`
|
|
Relationships []npcRelationshipResponse `json:"relationships"`
|
|
SourceRefs []npcSourceRefResponse `json:"source_refs"`
|
|
}
|
|
|
|
type npcRelationshipResponse struct {
|
|
Target string `json:"target"`
|
|
Relationship string `json:"relationship"`
|
|
}
|
|
|
|
type npcSourceRefResponse struct {
|
|
StartUnitID shared.UnitRef `json:"start_unit_id"`
|
|
EndUnitID shared.UnitRef `json:"end_unit_id"`
|
|
}
|