Documentation
¶
Index ¶
- Variables
- func CmdAccountDisconnect(c *TcpClient, result []string) bool
- func CmdAccountLogon(c *TcpClient, result []string) bool
- func CmdAddHero(c *TcpClient, result []string) bool
- func CmdAddItem(c *TcpClient, result []string) bool
- func CmdAddTalent(c *TcpClient, result []string) bool
- func CmdAddToken(c *TcpClient, result []string) bool
- func CmdChangeExp(c *TcpClient, result []string) bool
- func CmdChangeLevel(c *TcpClient, result []string) bool
- func CmdCreatePlayer(c *TcpClient, result []string) bool
- func CmdDelHero(c *TcpClient, result []string) bool
- func CmdDelItem(c *TcpClient, result []string) bool
- func CmdExpirePlayer(c *TcpClient, result []string) bool
- func CmdHeroPutonEquip(c *TcpClient, result []string) bool
- func CmdHeroTakeoffEquip(c *TcpClient, result []string) bool
- func CmdQueryHeros(c *TcpClient, result []string) bool
- func CmdQueryItems(c *TcpClient, result []string) bool
- func CmdQueryPlayerInfo(c *TcpClient, result []string) bool
- func CmdQueryTalents(c *TcpClient, result []string) bool
- func CmdQueryTokens(c *TcpClient, result []string) bool
- func CmdQuit(c *TcpClient, result []string) bool
- func CmdSendHeartBeat(c *TcpClient, result []string) bool
- func CmdUseItem(c *TcpClient, result []string) bool
- func CmdWebSocket(c *TcpClient, result []string) bool
- func CmdWebSocketAccountLogon(c *TcpClient, result []string) bool
- func NewClientBotsFlags() []cli.Flag
- func NewFlags() []cli.Flag
- type BotAI
- type BotCommand
- func (bc *BotCommand) BotCmdAccountLogon(userID int64, userName string) error
- func (bc *BotCommand) BotCmdAddHero() error
- func (bc *BotCommand) BotCmdAddItem() error
- func (bc *BotCommand) BotCmdAddToken() error
- func (bc *BotCommand) BotCmdChangeExp() error
- func (bc *BotCommand) BotCmdChangeLevel() error
- func (bc *BotCommand) BotCmdCreatePlayer() error
- func (bc *BotCommand) BotCmdQueryHeros() error
- func (bc *BotCommand) BotCmdQueryItems() error
- func (bc *BotCommand) BotCmdQueryPlayerInfo() error
- type Client
- type ClientBots
- type Command
- type CommandPage
- type MC_AccountTest
- type PromptUI
- type TcpClient
- func (t *TcpClient) Connect() error
- func (t *TcpClient) Disconnect()
- func (t *TcpClient) Exit()
- func (t *TcpClient) OnM2C_AccountLogon(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_CreatePlayer(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_HeartBeat(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_HeroInfo(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_HeroList(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_ItemList(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_QueryPlayerInfo(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnM2C_TokenList(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnMS_SelectPlayer(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) OnMS_TalentList(sock transport.Socket, msg *transport.Message)
- func (t *TcpClient) Run() error
- func (t *TcpClient) SendMessage(msg *transport.Message)
- func (t *TcpClient) SetTcpAddress(addr string)
- func (t *TcpClient) SetUserInfo(userID int64, accountID int64, userName string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CmdPages = make(map[int]*CommandPage, 0)
)
Functions ¶
func CmdAccountDisconnect ¶
func CmdAccountLogon ¶
func CmdAddHero ¶
func CmdAddItem ¶
func CmdAddTalent ¶
func CmdAddToken ¶
func CmdChangeExp ¶
func CmdChangeLevel ¶
func CmdCreatePlayer ¶
func CmdDelHero ¶
func CmdDelItem ¶
func CmdExpirePlayer ¶
func CmdHeroPutonEquip ¶
func CmdHeroTakeoffEquip ¶
func CmdQueryHeros ¶
func CmdQueryItems ¶
func CmdQueryPlayerInfo ¶
func CmdQueryTalents ¶
func CmdQueryTokens ¶
func CmdSendHeartBeat ¶
func CmdUseItem ¶
func CmdWebSocket ¶
func NewClientBotsFlags ¶
func NewClientBotsFlags() []cli.Flag
Types ¶
type BotCommand ¶
type BotCommand struct {
// contains filtered or unexported fields
}
func NewBotCommand ¶
func NewBotCommand(ctx context.Context, ai *BotAI) *BotCommand
func (*BotCommand) BotCmdAccountLogon ¶
func (bc *BotCommand) BotCmdAccountLogon(userID int64, userName string) error
func (*BotCommand) BotCmdAddHero ¶
func (bc *BotCommand) BotCmdAddHero() error
func (*BotCommand) BotCmdAddItem ¶
func (bc *BotCommand) BotCmdAddItem() error
func (*BotCommand) BotCmdAddToken ¶
func (bc *BotCommand) BotCmdAddToken() error
func (*BotCommand) BotCmdChangeExp ¶
func (bc *BotCommand) BotCmdChangeExp() error
func (*BotCommand) BotCmdChangeLevel ¶
func (bc *BotCommand) BotCmdChangeLevel() error
func (*BotCommand) BotCmdCreatePlayer ¶
func (bc *BotCommand) BotCmdCreatePlayer() error
func (*BotCommand) BotCmdQueryHeros ¶
func (bc *BotCommand) BotCmdQueryHeros() error
func (*BotCommand) BotCmdQueryItems ¶
func (bc *BotCommand) BotCmdQueryItems() error
func (*BotCommand) BotCmdQueryPlayerInfo ¶
func (bc *BotCommand) BotCmdQueryPlayerInfo() error
type ClientBots ¶
func NewClientBots ¶
func NewClientBots() (*ClientBots, error)
func (*ClientBots) Action ¶
func (c *ClientBots) Action(ctx *cli.Context) error
func (*ClientBots) After ¶
func (c *ClientBots) After(ctx *cli.Context) error
func (*ClientBots) Run ¶
func (c *ClientBots) Run(arguments []string) error
func (*ClientBots) Stop ¶
func (c *ClientBots) Stop()
type CommandPage ¶
type MC_AccountTest ¶
type PromptUI ¶
type PromptUI struct {
// contains filtered or unexported fields
}
func NewPromptUI ¶
type TcpClient ¶
type TcpClient struct {
// contains filtered or unexported fields
}
func NewTcpClient ¶
func (*TcpClient) Disconnect ¶
func (t *TcpClient) Disconnect()
func (*TcpClient) OnM2C_AccountLogon ¶
func (*TcpClient) OnM2C_CreatePlayer ¶
func (*TcpClient) OnM2C_HeartBeat ¶
func (*TcpClient) OnM2C_HeroInfo ¶
func (*TcpClient) OnM2C_HeroList ¶
func (*TcpClient) OnM2C_ItemList ¶
func (*TcpClient) OnM2C_QueryPlayerInfo ¶
func (*TcpClient) OnM2C_TokenList ¶
func (*TcpClient) OnMS_SelectPlayer ¶
func (*TcpClient) OnMS_TalentList ¶
func (*TcpClient) SendMessage ¶
func (*TcpClient) SetTcpAddress ¶
Click to show internal directories.
Click to hide internal directories.