Documentation
¶
Index ¶
- func AssignSpell(spellList *[]structs.Spell, castingBlocks *structs.SpellCasting)
- func DetectRitual(jsonData string) (bool, structs.RitualData)
- func ExtractWeaknessOrResistances(jsonData string, path string) []structs.DamageModifierBlock
- func GetListofJSON(dir string) ([]string, error)
- func GetMonstersInLevelRange(min int, max int) error
- func GetRepoArchive(cfg config.Config) error
- func GetXpBudget(difficulty string, pSize int) (int, error)
- func ItemSwitch(item string, passiveList *[]structs.Passive, ...) error
- func KickOffSync(cfg config.Config) error
- func LoadEachJSON(cfg config.Config, path string) error
- func LoadJSON(path string) (string, error)
- func ManageDBSync(cfg config.Config) error
- func NewInt4(value int) pgtype.Int4
- func NewText(value string) pgtype.Text
- func ParseAction(jsonData string) structs.Action
- func ParseCoreData(jsonData string) structs.Monster
- func ParseDamageBlocks(jsonData string) []structs.DamageBlock
- func ParseDamageEffects(jsonData string) structs.DamageEffect
- func ParseDefenseBlock(jsonData string) structs.DefenseBlock
- func ParseDurationBlock(jsonData string) structs.DurationBlock
- func ParseFocusSpellCasting(jsonData string) structs.FocusSpellCasting
- func ParseFoundJson(data string) (structs.Monster, error)
- func ParseFreeAction(jsonData string) structs.FreeAction
- func ParseInnateSpellCasting(jsonData string) structs.InnateSpellCasting
- func ParseItem(jsonData string) structs.Item
- func ParseItems(data gjson.Result) ([]structs.FreeAction, []structs.Action, []structs.Reaction, []structs.Passive, ...)
- func ParseMovements(jsonData string) []structs.Movement
- func ParsePassive(value string) structs.Passive
- func ParsePerception(jsonData string) structs.Perception
- func ParsePreparedSpellCasting(jsonData string) structs.PreparedSpellCasting
- func ParsePrice(jsonData string) structs.PriceBlock
- func ParseReaction(jsonData string) structs.Reaction
- func ParseSaves(jsonData string) structs.Saves
- func ParseSenses(jsonData string) []structs.Sense
- func ParseSkills(jsonData string) []structs.Skill
- func ParseSpell(jsonData string) structs.Spell
- func ParseSpellArea(jsonData string) structs.SpellArea
- func ParseSpontaneousSpellCasting(jsonData string) structs.SpontaneousSpellCasting
- func ParseWeapon(jsonData string) structs.Attack
- func PrepMonsterParams(monster structs.Monster) writeMonsters.InsertMonsterParams
- func ProcessAction(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessAttacks(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessFocusMagic(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessInnateMagic(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessItems(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessLanguages(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessMagic(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessMovements(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessPassive(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessPreparedMagic(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessReaction(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessSenses(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessSkills(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessSpontaneousMagic(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func ProcessWeakAndResist(ctx context.Context, queries *writeMonsters.Queries, monster structs.Monster, ...) error
- func SpellLevelParser(jsonData string) string
- func StringCleaner(input string) string
- func UuidRemover(input string) string
- func WriteMonsterToDb(monster structs.Monster, cfg config.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignSpell ¶
func AssignSpell(spellList *[]structs.Spell, castingBlocks *structs.SpellCasting)
func DetectRitual ¶
func DetectRitual(jsonData string) (bool, structs.RitualData)
func ExtractWeaknessOrResistances ¶
func ExtractWeaknessOrResistances(jsonData string, path string) []structs.DamageModifierBlock
func GetListofJSON ¶
func GetMonstersInLevelRange ¶
func GetRepoArchive ¶
func ItemSwitch ¶
func ItemSwitch(item string, passiveList *[]structs.Passive, SpellCastingBlocks *structs.SpellCasting, FreeActionList *[]structs.FreeAction, ReactionList *[]structs.Reaction, actionList *[]structs.Action, SpellList *[]structs.Spell, MeleeList *[]structs.Attack, RangedList *[]structs.Attack, Inventory *[]structs.Item) error
func KickOffSync ¶
func ManageDBSync ¶
func ParseAction ¶
func ParseCoreData ¶
func ParseDamageBlocks ¶
func ParseDamageBlocks(jsonData string) []structs.DamageBlock
func ParseDamageEffects ¶
func ParseDamageEffects(jsonData string) structs.DamageEffect
func ParseDefenseBlock ¶
func ParseDefenseBlock(jsonData string) structs.DefenseBlock
func ParseDurationBlock ¶
func ParseDurationBlock(jsonData string) structs.DurationBlock
func ParseFocusSpellCasting ¶
func ParseFocusSpellCasting(jsonData string) structs.FocusSpellCasting
func ParseFreeAction ¶
func ParseFreeAction(jsonData string) structs.FreeAction
func ParseInnateSpellCasting ¶
func ParseInnateSpellCasting(jsonData string) structs.InnateSpellCasting
func ParseItems ¶
func ParseMovements ¶
func ParsePassive ¶
func ParsePerception ¶
func ParsePerception(jsonData string) structs.Perception
func ParsePreparedSpellCasting ¶
func ParsePreparedSpellCasting(jsonData string) structs.PreparedSpellCasting
func ParsePrice ¶
func ParsePrice(jsonData string) structs.PriceBlock
func ParseReaction ¶
func ParseSaves ¶
func ParseSenses ¶
func ParseSkills ¶
func ParseSpell ¶
func ParseSpellArea ¶
func ParseSpontaneousSpellCasting ¶
func ParseSpontaneousSpellCasting(jsonData string) structs.SpontaneousSpellCasting
func ParseWeapon ¶
func PrepMonsterParams ¶
func PrepMonsterParams(monster structs.Monster) writeMonsters.InsertMonsterParams
func ProcessAction ¶
func ProcessAttacks ¶
func ProcessFocusMagic ¶
func ProcessInnateMagic ¶
func ProcessItems ¶
func ProcessLanguages ¶
func ProcessMagic ¶
func ProcessMovements ¶
func ProcessPassive ¶
func ProcessPreparedMagic ¶
func ProcessReaction ¶
func ProcessSenses ¶
func ProcessSkills ¶
func ProcessSpontaneousMagic ¶
func ProcessWeakAndResist ¶
func SpellLevelParser ¶
func StringCleaner ¶
func UuidRemover ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.