Documentation ¶
Index ¶
- func GetConsole(opt Options) (ret C.IConsole)
- func GetWriter(opt Options) (ret io.Writer)
- func PlayGame(cons C.IConsole, g R.Game) (err error)
- func PlayGameUpdate(cons C.IConsole, g R.Game, endFrame func()) (err error)
- func Run(scriptCallback script.InitCallback)
- func RunGame(opt Options) (err error)
- func RunScript(script *script.Script, opt Options) (err error)
- type MiniConsole
- type Options
- type StandardOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsole ¶
Types ¶
type MiniConsole ¶
implement IConsole for MiniCon FIX: rename to standard.miniconsole maybe?
func (MiniConsole) Readln ¶
func (this MiniConsole) Readln() (string, bool)
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
options and command line parsing for terminal style playback.
func (Options) DumpModelAndExit ¶
func (Options) SetConsole ¶
override console with some external instance
func (Options) SetVerbose ¶
func (Options) UseTextConsole ¶
type StandardOutput ¶
type StandardOutput struct {
// contains filtered or unexported fields
}
func NewStandardOutput ¶
func NewStandardOutput(c C.IConsole, logger io.Writer) *StandardOutput
func (*StandardOutput) ActorSays ¶
func (out *StandardOutput) ActorSays(whose meta.Instance, lines []string)
func (*StandardOutput) Log ¶
func (out *StandardOutput) Log(s string)
func (*StandardOutput) Println ¶
func (out *StandardOutput) Println(args ...interface{})
func (*StandardOutput) ScriptSays ¶
func (out *StandardOutput) ScriptSays(lines []string)
Click to show internal directories.
Click to hide internal directories.