writeMonsters

package
v0.0.0-...-59e16b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttackDamageBlock

type AttackDamageBlock struct {
	ID         int32
	AttackID   pgtype.Int4
	DamageRoll pgtype.Text
	DamageType pgtype.Text
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type FocusSpellCasting

type FocusSpellCasting struct {
	ID             int32
	MonsterID      pgtype.Int4
	Dc             pgtype.Int4
	Mod            pgtype.Text
	Tradition      pgtype.Text
	SpellcastingID pgtype.Text
	Name           pgtype.Text
	Description    pgtype.Text
	CastLevel      pgtype.Text
}

type FocusSpellCastingSpell

type FocusSpellCastingSpell struct {
	ID                  int32
	FocusSpellCastingID pgtype.Int4
	SpellID             pgtype.Text
}

type GetMonstersByLevelRangeParams

type GetMonstersByLevelRangeParams struct {
	Level   pgtype.Text
	Level_2 pgtype.Text
}

type InnateSpellCasting

type InnateSpellCasting struct {
	ID             int32
	MonsterID      pgtype.Int4
	Dc             pgtype.Int4
	Tradition      pgtype.Text
	Mod            pgtype.Text
	SpellcastingID pgtype.Text
	Description    pgtype.Text
	Name           pgtype.Text
}

type InnateSpellUse

type InnateSpellUse struct {
	ID                   int32
	InnateSpellCastingID pgtype.Int4
	SpellID              pgtype.Text
	Level                pgtype.Int4
	Uses                 pgtype.Text
}

type InsertFocusSpellCastingParams

type InsertFocusSpellCastingParams struct {
	MonsterID      pgtype.Int4
	Dc             pgtype.Int4
	Mod            pgtype.Text
	Tradition      pgtype.Text
	SpellcastingID pgtype.Text
	Name           pgtype.Text
	Description    pgtype.Text
	CastLevel      pgtype.Text
}

type InsertFocusSpellsCastsParams

type InsertFocusSpellsCastsParams struct {
	FocusSpellCastingID pgtype.Int4
	SpellID             pgtype.Text
}

type InsertInnateSpellCastingParams

type InsertInnateSpellCastingParams struct {
	MonsterID      pgtype.Int4
	Dc             pgtype.Int4
	Tradition      pgtype.Text
	Mod            pgtype.Text
	SpellcastingID pgtype.Text
	Description    pgtype.Text
	Name           pgtype.Text
}

type InsertInnateSpellUseParams

type InsertInnateSpellUseParams struct {
	InnateSpellCastingID pgtype.Int4
	SpellID              pgtype.Text
	Level                pgtype.Int4
	Uses                 pgtype.Text
}

type InsertItemTraitsParams

type InsertItemTraitsParams struct {
	ItemID pgtype.Text
	Trait  pgtype.Text
}

type InsertItemsParams

type InsertItemsParams struct {
	ID          string
	MonsterID   pgtype.Int4
	Name        pgtype.Text
	Category    pgtype.Text
	Description pgtype.Text
	Level       pgtype.Text
	Rarity      pgtype.Text
	Bulk        pgtype.Text
	Quantity    pgtype.Text
	PricePer    pgtype.Int4
	PriceCp     pgtype.Int4
	PriceGp     pgtype.Int4
	PriceSp     pgtype.Int4
	PricePp     pgtype.Int4
}

type InsertMonsterActionParams

type InsertMonsterActionParams struct {
	MonsterID  pgtype.Int4
	ActionType pgtype.Text
	Name       pgtype.Text
	Text       pgtype.Text
	Actions    pgtype.Text
	Category   pgtype.Text
	Rarity     pgtype.Text
	Dc         pgtype.Text
}

type InsertMonsterActionTraitsParams

type InsertMonsterActionTraitsParams struct {
	MonsterActionID pgtype.Int4
	Trait           pgtype.Text
}

type InsertMonsterAttackDamageBlockParams

type InsertMonsterAttackDamageBlockParams struct {
	AttackID   pgtype.Int4
	DamageRoll pgtype.Text
	DamageType pgtype.Text
}

type InsertMonsterAttacksParams

type InsertMonsterAttacksParams struct {
	MonsterID           pgtype.Int4
	AttackCategory      pgtype.Text
	Name                pgtype.Text
	AttackType          pgtype.Text
	ToHitBonus          pgtype.Text
	EffectsCustomString pgtype.Text
	EffectsValues       []string
}

type InsertMonsterDamageModifierParams

type InsertMonsterDamageModifierParams struct {
	MonsterID        pgtype.Int4
	ModifierCategory pgtype.Text
	Value            pgtype.Int4
	DamageType       pgtype.Text
}

type InsertMonsterImmunitiesParams

type InsertMonsterImmunitiesParams struct {
	MonsterID pgtype.Int4
	Immunity  pgtype.Text
}

type InsertMonsterLanguagesParams

type InsertMonsterLanguagesParams struct {
	MonsterID pgtype.Int4
	Language  pgtype.Text
}

type InsertMonsterModifierDoublesParams

type InsertMonsterModifierDoublesParams struct {
	ModifierID  pgtype.Int4
	DoubleValue pgtype.Text
}

type InsertMonsterModifierExceptionsParams

type InsertMonsterModifierExceptionsParams struct {
	ModifierID pgtype.Int4
	Exception  pgtype.Text
}

type InsertMonsterMovementsParams

type InsertMonsterMovementsParams struct {
	MonsterID    pgtype.Int4
	MovementType pgtype.Text
	Speed        pgtype.Text
	Notes        pgtype.Text
}

type InsertMonsterParams

type InsertMonsterParams struct {
	Name             string
	Level            pgtype.Text
	FocusPoints      pgtype.Int4
	TraitsRarity     pgtype.Text
	TraitsSize       pgtype.Text
	AttrStr          pgtype.Text
	AttrDex          pgtype.Text
	AttrCon          pgtype.Text
	AttrWis          pgtype.Text
	AttrInt          pgtype.Text
	AttrCha          pgtype.Text
	SavesFort        pgtype.Text
	SavesFortDetail  pgtype.Text
	SavesRef         pgtype.Text
	SavesRefDetail   pgtype.Text
	SavesWill        pgtype.Text
	SavesWillDetail  pgtype.Text
	SavesException   pgtype.Text
	AcValue          pgtype.Text
	AcDetail         pgtype.Text
	HpValue          pgtype.Int4
	HpDetail         pgtype.Text
	PerceptionMod    pgtype.Text
	PerceptionDetail pgtype.Text
}

type InsertMonsterSensesParams

type InsertMonsterSensesParams struct {
	MonsterID pgtype.Int4
	Name      pgtype.Text
	Range     pgtype.Text
	Acuity    pgtype.Text
	Detail    pgtype.Text
}

type InsertMonsterSkillSpecialsParams

type InsertMonsterSkillSpecialsParams struct {
	SkillID    pgtype.Int4
	Value      pgtype.Int4
	Label      pgtype.Text
	Predicates []string
}

type InsertMonsterSkillsParams

type InsertMonsterSkillsParams struct {
	MonsterID pgtype.Int4
	Name      pgtype.Text
	Value     pgtype.Int4
}

type InsertMonsterTraitsParams

type InsertMonsterTraitsParams struct {
	MonsterID pgtype.Int4
	Trait     pgtype.Text
}

type InsertPreparedSlotsParams

type InsertPreparedSlotsParams struct {
	PreparedSpellCastingID pgtype.Int4
	Level                  pgtype.Text
	SpellID                pgtype.Text
}

type InsertPreparedSpellCastingParams

type InsertPreparedSpellCastingParams struct {
	MonsterID      pgtype.Int4
	Dc             pgtype.Int4
	Tradition      pgtype.Text
	Mod            pgtype.Text
	SpellcastingID pgtype.Text
	Description    pgtype.Text
}

type InsertRitualDataParams

type InsertRitualDataParams struct {
	SpellID          pgtype.Text
	PrimaryCheck     pgtype.Text
	SecondaryCasters pgtype.Text
	SecondaryCheck   pgtype.Text
}

type InsertSpellAreaParams

type InsertSpellAreaParams struct {
	SpellID  pgtype.Text
	AreaType pgtype.Text
	Value    pgtype.Text
	Detail   pgtype.Text
}

type InsertSpellDefencesParams

type InsertSpellDefencesParams struct {
	SpellID pgtype.Text
	Save    pgtype.Text
	Basic   pgtype.Bool
}

type InsertSpellDurationParams

type InsertSpellDurationParams struct {
	SpellID   pgtype.Text
	Sustained pgtype.Bool
	Duration  pgtype.Text
}

type InsertSpellParams

type InsertSpellParams struct {
	Name                        pgtype.Text
	CastLevel                   pgtype.Text
	SpellBaseLevel              pgtype.Text
	Description                 pgtype.Text
	Range                       pgtype.Text
	CastTime                    pgtype.Text
	CastRequirements            pgtype.Text
	Rarity                      pgtype.Text
	AtWill                      pgtype.Bool
	SpellCastingBlockLocationID pgtype.Text
	Uses                        pgtype.Text
	Ritual                      pgtype.Bool
	Targets                     pgtype.Text
}

type InsertSpellTraitsParams

type InsertSpellTraitsParams struct {
	SpellID pgtype.Text
	Trait   pgtype.Text
}

type InsertSpontaneousSpellListParams

type InsertSpontaneousSpellListParams struct {
	SpontaneousSpellCastingID pgtype.Int4
	SpellID                   pgtype.Text
}

type InsertSpontaneousSpellSlotsParams

type InsertSpontaneousSpellSlotsParams struct {
	SpontaneousSpellCastingID pgtype.Int4
	Level                     pgtype.Text
	Casts                     pgtype.Text
}

type InsertSpontaneousSpellsParams

type InsertSpontaneousSpellsParams struct {
	MonsterID pgtype.Int4
	Dc        pgtype.Int4
	IDString  pgtype.Text
	Tradition pgtype.Text
	Mod       pgtype.Text
}

type Item

type Item struct {
	ID          string
	MonsterID   pgtype.Int4
	Name        pgtype.Text
	Category    pgtype.Text
	Description pgtype.Text
	Level       pgtype.Text
	Type        pgtype.Text
	Rarity      pgtype.Text
	Size        pgtype.Text
	Range       pgtype.Text
	Reload      pgtype.Text
	Bulk        pgtype.Text
	Quantity    pgtype.Text
	PricePer    pgtype.Int4
	PriceCp     pgtype.Int4
	PriceSp     pgtype.Int4
	PriceGp     pgtype.Int4
	PricePp     pgtype.Int4
}

type ItemTrait

type ItemTrait struct {
	ID     int32
	ItemID pgtype.Text
	Trait  pgtype.Text
}

type Monster

type Monster struct {
	ID               int32
	Name             string
	Level            pgtype.Text
	FocusPoints      pgtype.Int4
	TraitsRarity     pgtype.Text
	TraitsSize       pgtype.Text
	AttrStr          pgtype.Text
	AttrDex          pgtype.Text
	AttrCon          pgtype.Text
	AttrWis          pgtype.Text
	AttrInt          pgtype.Text
	AttrCha          pgtype.Text
	SavesFort        pgtype.Text
	SavesFortDetail  pgtype.Text
	SavesRef         pgtype.Text
	SavesRefDetail   pgtype.Text
	SavesWill        pgtype.Text
	SavesWillDetail  pgtype.Text
	SavesException   pgtype.Text
	AcValue          pgtype.Text
	AcDetail         pgtype.Text
	HpDetail         pgtype.Text
	HpValue          pgtype.Int4
	PerceptionMod    pgtype.Text
	PerceptionDetail pgtype.Text
}

type MonsterAction

type MonsterAction struct {
	ID         int32
	MonsterID  pgtype.Int4
	ActionType pgtype.Text
	Name       pgtype.Text
	Text       pgtype.Text
	Actions    pgtype.Text
	Category   pgtype.Text
	Rarity     pgtype.Text
	Dc         pgtype.Text
}

type MonsterActionTrait

type MonsterActionTrait struct {
	ID              int32
	MonsterActionID pgtype.Int4
	Trait           pgtype.Text
}

type MonsterAttack

type MonsterAttack struct {
	ID                  int32
	MonsterID           pgtype.Int4
	AttackCategory      pgtype.Text
	Name                pgtype.Text
	AttackType          pgtype.Text
	ToHitBonus          pgtype.Text
	EffectsCustomString pgtype.Text
	EffectsValues       []string
}

type MonsterDamageModifier

type MonsterDamageModifier struct {
	ID               int32
	MonsterID        pgtype.Int4
	ModifierCategory pgtype.Text
	Value            pgtype.Int4
	DamageType       pgtype.Text
}

type MonsterImmunity

type MonsterImmunity struct {
	ID        int32
	MonsterID pgtype.Int4
	Immunity  pgtype.Text
}

type MonsterLanguage

type MonsterLanguage struct {
	ID        int32
	MonsterID pgtype.Int4
	Language  pgtype.Text
}

type MonsterModifierDouble

type MonsterModifierDouble struct {
	ID          int32
	ModifierID  pgtype.Int4
	DoubleValue pgtype.Text
}

type MonsterModifierException

type MonsterModifierException struct {
	ID         int32
	ModifierID pgtype.Int4
	Exception  pgtype.Text
}

type MonsterMovement

type MonsterMovement struct {
	ID           int32
	MonsterID    pgtype.Int4
	MovementType pgtype.Text
	Speed        pgtype.Text
	Notes        pgtype.Text
}

type MonsterSense

type MonsterSense struct {
	ID        int32
	MonsterID pgtype.Int4
	Name      pgtype.Text
	Range     pgtype.Text
	Acuity    pgtype.Text
	Detail    pgtype.Text
}

type MonsterSkill

type MonsterSkill struct {
	ID        int32
	MonsterID pgtype.Int4
	Name      pgtype.Text
	Value     pgtype.Int4
}

type MonsterSkillSpecial

type MonsterSkillSpecial struct {
	ID         int32
	SkillID    pgtype.Int4
	Value      pgtype.Int4
	Label      pgtype.Text
	Predicates []string
}

type MonsterTrait

type MonsterTrait struct {
	ID        int32
	MonsterID pgtype.Int4
	Trait     pgtype.Text
}

type PreparedSlot

type PreparedSlot struct {
	ID                     int32
	PreparedSpellCastingID pgtype.Int4
	Level                  pgtype.Text
	SpellID                pgtype.Text
}

type PreparedSpellCasting

type PreparedSpellCasting struct {
	ID             int32
	MonsterID      pgtype.Int4
	Dc             pgtype.Int4
	Tradition      pgtype.Text
	Mod            pgtype.Text
	SpellcastingID pgtype.Text
	Description    pgtype.Text
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) GetFullMonsterByID

func (q *Queries) GetFullMonsterByID(ctx context.Context, id int32) ([]byte, error)

func (*Queries) GetMonstersByLevelRange

func (q *Queries) GetMonstersByLevelRange(ctx context.Context, arg GetMonstersByLevelRangeParams) ([][]byte, error)

func (*Queries) GetMonstersByTrait

func (q *Queries) GetMonstersByTrait(ctx context.Context, trait pgtype.Text) ([]Monster, error)

func (*Queries) InsertFocusSpellCasting

func (q *Queries) InsertFocusSpellCasting(ctx context.Context, arg InsertFocusSpellCastingParams) (int32, error)

func (*Queries) InsertFocusSpellsCasts

func (q *Queries) InsertFocusSpellsCasts(ctx context.Context, arg InsertFocusSpellsCastsParams) error

func (*Queries) InsertInnateSpellCasting

func (q *Queries) InsertInnateSpellCasting(ctx context.Context, arg InsertInnateSpellCastingParams) (int32, error)

func (*Queries) InsertInnateSpellUse

func (q *Queries) InsertInnateSpellUse(ctx context.Context, arg InsertInnateSpellUseParams) error

func (*Queries) InsertItemTraits

func (q *Queries) InsertItemTraits(ctx context.Context, arg InsertItemTraitsParams) error

func (*Queries) InsertItems

func (q *Queries) InsertItems(ctx context.Context, arg InsertItemsParams) (string, error)

func (*Queries) InsertMonster

func (q *Queries) InsertMonster(ctx context.Context, arg InsertMonsterParams) (int32, error)

func (*Queries) InsertMonsterAction

func (q *Queries) InsertMonsterAction(ctx context.Context, arg InsertMonsterActionParams) (int32, error)

func (*Queries) InsertMonsterActionTraits

func (q *Queries) InsertMonsterActionTraits(ctx context.Context, arg InsertMonsterActionTraitsParams) error

func (*Queries) InsertMonsterAttackDamageBlock

func (q *Queries) InsertMonsterAttackDamageBlock(ctx context.Context, arg InsertMonsterAttackDamageBlockParams) error

func (*Queries) InsertMonsterAttacks

func (q *Queries) InsertMonsterAttacks(ctx context.Context, arg InsertMonsterAttacksParams) (int32, error)

func (*Queries) InsertMonsterDamageModifier

func (q *Queries) InsertMonsterDamageModifier(ctx context.Context, arg InsertMonsterDamageModifierParams) (int32, error)

func (*Queries) InsertMonsterImmunities

func (q *Queries) InsertMonsterImmunities(ctx context.Context, arg InsertMonsterImmunitiesParams) error

func (*Queries) InsertMonsterLanguages

func (q *Queries) InsertMonsterLanguages(ctx context.Context, arg InsertMonsterLanguagesParams) error

func (*Queries) InsertMonsterModifierDoubles

func (q *Queries) InsertMonsterModifierDoubles(ctx context.Context, arg InsertMonsterModifierDoublesParams) error

func (*Queries) InsertMonsterModifierExceptions

func (q *Queries) InsertMonsterModifierExceptions(ctx context.Context, arg InsertMonsterModifierExceptionsParams) error

func (*Queries) InsertMonsterMovements

func (q *Queries) InsertMonsterMovements(ctx context.Context, arg InsertMonsterMovementsParams) error

func (*Queries) InsertMonsterSenses

func (q *Queries) InsertMonsterSenses(ctx context.Context, arg InsertMonsterSensesParams) error

func (*Queries) InsertMonsterSkillSpecials

func (q *Queries) InsertMonsterSkillSpecials(ctx context.Context, arg InsertMonsterSkillSpecialsParams) error

func (*Queries) InsertMonsterSkills

func (q *Queries) InsertMonsterSkills(ctx context.Context, arg InsertMonsterSkillsParams) (int32, error)

func (*Queries) InsertMonsterTraits

func (q *Queries) InsertMonsterTraits(ctx context.Context, arg InsertMonsterTraitsParams) error

func (*Queries) InsertPreparedSlots

func (q *Queries) InsertPreparedSlots(ctx context.Context, arg InsertPreparedSlotsParams) error

func (*Queries) InsertPreparedSpellCasting

func (q *Queries) InsertPreparedSpellCasting(ctx context.Context, arg InsertPreparedSpellCastingParams) (int32, error)

func (*Queries) InsertRitualData

func (q *Queries) InsertRitualData(ctx context.Context, arg InsertRitualDataParams) error

func (*Queries) InsertSpell

func (q *Queries) InsertSpell(ctx context.Context, arg InsertSpellParams) (string, error)

func (*Queries) InsertSpellArea

func (q *Queries) InsertSpellArea(ctx context.Context, arg InsertSpellAreaParams) error

func (*Queries) InsertSpellDefences

func (q *Queries) InsertSpellDefences(ctx context.Context, arg InsertSpellDefencesParams) error

func (*Queries) InsertSpellDuration

func (q *Queries) InsertSpellDuration(ctx context.Context, arg InsertSpellDurationParams) error

func (*Queries) InsertSpellTraits

func (q *Queries) InsertSpellTraits(ctx context.Context, arg InsertSpellTraitsParams) error

func (*Queries) InsertSpontaneousSpellList

func (q *Queries) InsertSpontaneousSpellList(ctx context.Context, arg InsertSpontaneousSpellListParams) error

func (*Queries) InsertSpontaneousSpellSlots

func (q *Queries) InsertSpontaneousSpellSlots(ctx context.Context, arg InsertSpontaneousSpellSlotsParams) error

func (*Queries) InsertSpontaneousSpells

func (q *Queries) InsertSpontaneousSpells(ctx context.Context, arg InsertSpontaneousSpellsParams) (int32, error)

func (*Queries) SearchMonsterByName

func (q *Queries) SearchMonsterByName(ctx context.Context, dollar_1 pgtype.Text) ([][]byte, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RitualDatum

type RitualDatum struct {
	ID               int32
	SpellID          pgtype.Text
	PrimaryCheck     pgtype.Text
	SecondaryCasters pgtype.Text
	SecondaryCheck   pgtype.Text
}

type Spell

type Spell struct {
	ID                          string
	Name                        pgtype.Text
	CastLevel                   pgtype.Text
	SpellBaseLevel              pgtype.Text
	Description                 pgtype.Text
	Range                       pgtype.Text
	CastTime                    pgtype.Text
	CastRequirements            pgtype.Text
	Rarity                      pgtype.Text
	AtWill                      pgtype.Bool
	SpellCastingBlockLocationID pgtype.Text
	Uses                        pgtype.Text
	Ritual                      pgtype.Bool
	Targets                     pgtype.Text
}

type SpellArea

type SpellArea struct {
	ID       int32
	SpellID  pgtype.Text
	AreaType pgtype.Text
	Value    pgtype.Text
	Detail   pgtype.Text
}

type SpellDefense

type SpellDefense struct {
	ID      int32
	SpellID pgtype.Text
	Save    pgtype.Text
	Basic   pgtype.Bool
}

type SpellDuration

type SpellDuration struct {
	ID        int32
	SpellID   pgtype.Text
	Sustained pgtype.Bool
	Duration  pgtype.Text
}

type SpellTrait

type SpellTrait struct {
	ID      int32
	SpellID pgtype.Text
	Trait   pgtype.Text
}

type SpontaneousSlot

type SpontaneousSlot struct {
	ID                        int32
	SpontaneousSpellCastingID pgtype.Int4
	Level                     pgtype.Text
	Casts                     pgtype.Text
}

type SpontaneousSpellCasting

type SpontaneousSpellCasting struct {
	ID        int32
	MonsterID pgtype.Int4
	Dc        pgtype.Int4
	IDString  pgtype.Text
	Tradition pgtype.Text
	Mod       pgtype.Text
}

type SpontaneousSpellList

type SpontaneousSpellList struct {
	ID                        int32
	SpontaneousSpellCastingID pgtype.Int4
	SpellID                   pgtype.Text
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL