scene

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodByeScene

type GoodByeScene struct {
	Scene
	Name string `yaml:"name" json:"name" xml:"name"`
}

type Matcher

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

func (*Matcher) UnmarshalJSON

func (m *Matcher) UnmarshalJSON(bs []byte) error

func (*Matcher) UnmarshalXML

func (m *Matcher) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Matcher) UnmarshalYAML

func (m *Matcher) UnmarshalYAML(n *yaml.Node) error

type RegexMatcher

type RegexMatcher struct {
	Name  string `yaml:"name" json:"name" xml:"name"`
	Regex string `yaml:"regex" json:"regex" xml:"regex"`
}

type Scene

type Scene struct {
	Text        Text      `yaml:"text" json:"text" xml:"text"`
	NextScene   string    `yaml:"nextScene" json:"next_scene" xml:"nextScene"`
	IsInfoScene bool      `yaml:"isInfoScene,omitempty" json:"is_info_scene,omitempty" xml:"isInfoScene,omitempty"`
	Matchers    []Matcher `yaml:"matchers,omitempty" json:"matchers,omitempty" xml:"matchers,omitempty"`
	Errors      []string  `yaml:"errors,omitempty" json:"errors,omitempty" xml:"errors,omitempty"`
}

func (*Scene) IsValid

func (s *Scene) IsValid() (bool, error)

type SelectMatcher

type SelectMatcher struct {
	Name    string   `yaml:"name" json:"name" xml:"name"`
	Selects []string `yaml:"selects_in" json:"selects" xml:"selects"`
}

type Text

type Text struct {
	Text   string            `yaml:"string" json:"text" xml:"text"`
	TTS    string            `yaml:"tts" json:"tts" xml:"tts"`
	Values map[string]string `yaml:"values,omitempty" json:"values,omitempty" xml:"values,omitempty"`
}

func (*Text) IsValid

func (t *Text) IsValid() (bool, error)

Jump to

Keyboard shortcuts

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