dump

package
v0.24.7 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

for wasm: dump a scene's worth of data to json. ignores checks since this is for wasm playback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpAll

func DumpAll(db *sql.DB, dec qdb.CommandDecoder, scene string) (ret raw.Data, err error)

func QueryAliases

func QueryAliases(db *sql.DB, ns []raw.NounData) (err error)

func QueryGrammar

func QueryGrammar(db *sql.DB, dec qdb.CommandDecoder, scene string) (ret []grammar.Directive, err error)

directives produce scanners so that scanners can live separate from tapestry/commands

func QueryInnerNouns

func QueryInnerNouns(db *sql.DB, scene string) (ret []raw.NounData, err error)

func QueryInnerPatterns

func QueryInnerPatterns(db *sql.DB, scene string) (ret []raw.PatternData, err error)

func QueryInnerRelations

func QueryInnerRelations(db *sql.DB, scene string) (ret []raw.RelativeData, err error)

build a list of relations

func QueryKinds

func QueryKinds(db *sql.DB, dec qdb.CommandDecoder, scene string) (ret []rt.Kind, err error)

func QueryNames

func QueryNames(db *sql.DB, scene string) (ret []raw.NounName, err error)

func QueryNouns

func QueryNouns(db *sql.DB, kd qdb.KindDecoder, scene string) (ret []raw.NounData, err error)

func QueryPairs

func QueryPairs(db *sql.DB, scene string, rs []raw.RelativeData) (err error)

build a list of pairs per relation

func QueryPatterns

func QueryPatterns(db *sql.DB, dec qdb.CommandDecoder, scene string) (ret []raw.PatternData, err error)

func QueryPlurals

func QueryPlurals(db *sql.DB, scene string) (ret []raw.Plural, err error)

fix? this is a little different than the way the normal player works this includes kinds

func QueryRelatives

func QueryRelatives(db *sql.DB, scene string) (ret []raw.RelativeData, err error)

func QueryRules

func QueryRules(db *sql.DB, dec qdb.CommandDecoder, scene string, ps []raw.PatternData) (err error)

func QueryScenes

func QueryScenes(db *sql.DB, scene string) (ret []string, err error)

func QueryValues

func QueryValues(db *sql.DB, kd qdb.KindDecoder, ns []raw.NounData) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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