2026-07-17 05:05:48 +00:00
|
|
|
package spells
|
|
|
|
|
|
|
|
|
|
import "gitea.maximumdirect.net/eric/notarius/internal/modules/dnd/shared"
|
|
|
|
|
|
|
|
|
|
type extractionResponse struct {
|
|
|
|
|
SpellCasts []spellCastResponse `json:"spell_casts"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type spellCastResponse struct {
|
2026-07-17 06:50:08 +00:00
|
|
|
Caster string `json:"caster"`
|
|
|
|
|
Spell string `json:"spell"`
|
|
|
|
|
Effect string `json:"effect"`
|
|
|
|
|
NarrativeDescription string `json:"narrative_description"`
|
|
|
|
|
SourceRefs []spellSourceRefResponse `json:"source_refs"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type spellSourceRefResponse struct {
|
|
|
|
|
StartUnitID shared.UnitRef `json:"start_unit_id"`
|
|
|
|
|
EndUnitID shared.UnitRef `json:"end_unit_id"`
|
2026-07-17 05:05:48 +00:00
|
|
|
}
|