Documentation ¶
Overview ¶
Code generated by Tapestry; edit at your own risk.
Index ¶
- Variables
- func SplitLines(str string) []string
- func Stringify(v rt.Value) (ret string)
- type DebugLog
- type DebugLog_Slice
- type DoNothing
- type DoNothing_Slice
- type Expect
- type ExpectOutput
- type ExpectOutput_Slice
- type ExpectText
- type ExpectText_Slice
- type Expect_Slice
- type Fabricate
- type Fabricate_Slice
- type GreatExpectations
- type LoggingLevel
Constants ¶
This section is empty.
Variables ¶
var ( T = literal.T CmdError = assign.CmdError CmdErrorCtx = assign.CmdErrorCtx )
var Stepper func(words string) error
a callback so fabricate can trigger a step of the parser; fabricate will error if this is nil/unset. ( see also: cmdcheck )
var Z_Types = typeinfo.TypeSet{
Name: "debug",
Flow: z_flow_list,
Str: z_str_list,
Signatures: z_signatures,
}
package listing of type data
var Zt_DebugLog typeinfo.Flow
debug_log, a type of flow.
var Zt_DoNothing typeinfo.Flow
do_nothing, a type of flow.
var Zt_Expect typeinfo.Flow
expect, a type of flow.
var Zt_ExpectOutput typeinfo.Flow
expect_output, a type of flow.
var Zt_ExpectText typeinfo.Flow
expect_text, a type of flow.
var Zt_Fabricate typeinfo.Flow
fabricate, a type of flow.
var Zt_LoggingLevel = typeinfo.Str{ Name: "logging_level", Options: []string{ "note", "debug", "info", "warn", "error", }, }
logging_level, a type of str enum.
Functions ¶
func SplitLines ¶
Types ¶
type DebugLog ¶
type DebugLog struct { LogLevel LoggingLevel Value rtti.Assignment Markup map[string]any }
Debug log.
type DebugLog_Slice ¶
type DebugLog_Slice []DebugLog
holds a slice of type debug_log
func (*DebugLog_Slice) Repeats ¶
func (op *DebugLog_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DebugLog_Slice) TypeInfo ¶
func (*DebugLog_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DoNothing ¶
a command with a signature of the comment marker metadata. a cheat to allows nodes that have only a comment marker and no actual command. see also: story.story_break
type DoNothing_Slice ¶
type DoNothing_Slice []DoNothing
holds a slice of type do_nothing
func (*DoNothing_Slice) Repeats ¶
func (op *DoNothing_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DoNothing_Slice) TypeInfo ¶
func (*DoNothing_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ExpectOutput ¶
func (*ExpectOutput) GetMarkup ¶
func (op *ExpectOutput) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ExpectOutput) TypeInfo ¶
func (*ExpectOutput) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ExpectOutput_Slice ¶
type ExpectOutput_Slice []ExpectOutput
holds a slice of type expect_output
func (*ExpectOutput_Slice) Repeats ¶
func (op *ExpectOutput_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ExpectOutput_Slice) TypeInfo ¶
func (*ExpectOutput_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ExpectText ¶
type ExpectText_Slice ¶
type ExpectText_Slice []ExpectText
holds a slice of type expect_text
func (*ExpectText_Slice) Repeats ¶
func (op *ExpectText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ExpectText_Slice) TypeInfo ¶
func (*ExpectText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Expect_Slice ¶
type Expect_Slice []Expect
holds a slice of type expect
func (*Expect_Slice) TypeInfo ¶
func (*Expect_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Fabricate ¶
fake input as if the player had typed it themselves. only works while running checks.
type Fabricate_Slice ¶
type Fabricate_Slice []Fabricate
holds a slice of type fabricate
func (*Fabricate_Slice) Repeats ¶
func (op *Fabricate_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Fabricate_Slice) TypeInfo ¶
func (*Fabricate_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type GreatExpectations ¶
type GreatExpectations interface { // gets and resets the most recent game output GetAccumulatedOutput() []string }
an optional interface runtimes can implement for testing
type LoggingLevel ¶
type LoggingLevel int
LoggingLevel, a type of str enum.
const ( C_LoggingLevel_Note LoggingLevel = iota C_LoggingLevel_Debug C_LoggingLevel_Info C_LoggingLevel_Warn C_LoggingLevel_Error )
enumerated values of LoggingLevel
var LogLevel LoggingLevel = C_LoggingLevel_Debug
LogLevel controls how much debugging to print logs only at the named level and higher.
func MakeLoggingLevel ¶
func MakeLoggingLevel(str string) (ret LoggingLevel, okay bool)
func (LoggingLevel) String ¶
func (op LoggingLevel) String() (ret string)