scenes

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DoreEchoButtonText - text for button Dore
	DoreEchoButtonText = "Привет"
	// JoreEchoButtonText - text for button Jore
	JoreEchoButtonText = "Привет"
)
View Source
const (
	// EchoScene name of $nameScene
	EchoScene = SceneName("echo")
	// EchoRepeatScene name of $nameScene
	EchoRepeatScene = SceneName("echo_repeat")
	// GoodbyeScene name of $nameScene
	GoodbyeScene = SceneName("goodbye")
	// HelloScene name of $nameScene
	HelloScene = SceneName("hello")
	// NoScene name of next scene for ending scenes
	NoScene = SceneName("_nothing_scene")
)
View Source
const (
	// DoreEchoRepeatButtonText - text for button Dore
	DoreEchoRepeatButtonText = "Привет"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo struct {
	loghttp.LogObject
	TextManager manager.TextManager
	NextScene   SceneName
}

Echo scene

func (*Echo) GetSceneInfo

func (sc *Echo) GetSceneInfo(_ *scene.Context) (scene.Info, bool)

GetSceneInfo function returning info about scene

func (*Echo) Next

func (sc *Echo) Next() scene.Scene

Next function returning next scene

func (*Echo) React

func (sc *Echo) React(ctx *scene.Context) scene.Command

React function of actions after scene has been played

type EchoRepeat

type EchoRepeat struct {
	loghttp.LogObject
	TextManager manager.TextManager
	NextScene   SceneName
}

EchoRepeat scene

func (*EchoRepeat) GetSceneInfo

func (sc *EchoRepeat) GetSceneInfo(_ *scene.Context) (scene.Info, bool)

GetSceneInfo function returning info about scene

func (*EchoRepeat) Next

func (sc *EchoRepeat) Next() scene.Scene

Next function returning next scene

func (*EchoRepeat) React

func (sc *EchoRepeat) React(ctx *scene.Context) scene.Command

React function of actions after scene has been played

type Goodbye

type Goodbye struct {
	loghttp.LogObject
	TextManager manager.TextManager
	NextScene   SceneName
}

Goodbye scene

func (*Goodbye) GetSceneInfo

func (sc *Goodbye) GetSceneInfo(_ *scene.Context) (scene.Info, bool)

GetSceneInfo function returning info about scene

func (*Goodbye) Next

func (sc *Goodbye) Next() scene.Scene

Next function returning next scene

func (*Goodbye) React

func (sc *Goodbye) React(_ *scene.Context) scene.Command

React function of actions after scene has been played

type Hello

type Hello struct {
	loghttp.LogObject
	TextManager manager.TextManager
	NextScene   SceneName
}

Hello scene

func (*Hello) GetSceneInfo

func (sc *Hello) GetSceneInfo(_ *scene.Context) (scene.Info, bool)

GetSceneInfo function returning info about scene

func (*Hello) Next

func (sc *Hello) Next() scene.Scene

Next function returning next scene

func (*Hello) React

func (sc *Hello) React(_ *scene.Context) scene.Command

React function of actions after scene has been played

type SceneName

type SceneName string

Jump to

Keyboard shortcuts

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