bot

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotStatusSucc   = "succ"
	BotStatusFail   = "fail"
	BotStatusUnknow = "unknow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewWithBehaviorTree

func NewWithBehaviorTree(path string, bt *behavior.Tree, mode behavior.Mode, name, batch string, idx int32, globalScript string) *Bot

func (*Bot) GetMetaInfo added in v0.4.4

func (b *Bot) GetMetaInfo() string

func (*Bot) GetReport

func (b *Bot) GetReport() []script.Report

func (*Bot) GetThreadInfo added in v0.4.4

func (b *Bot) GetThreadInfo() string

func (*Bot) ID

func (b *Bot) ID() string

func (*Bot) Name

func (b *Bot) Name() string

func (*Bot) RunByBlock added in v0.4.4

func (b *Bot) RunByBlock() error

func (*Bot) RunByStep added in v0.4.4

func (b *Bot) RunByStep() State

func (*Bot) RunByThread added in v0.4.4

func (b *Bot) RunByThread(doneCh chan<- string, errch chan<- ErrInfo)

type ErrInfo

type ErrInfo struct {
	ID  string
	Err error
}

type State

type State int32
const (
	SEnd State = 1 + iota
	SBreak
	SSucc
)

系统内部错误

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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