Versions in this module Expand all Collapse all v1 v1.0.0 May 18, 2020 Changes in this version + var CmdPages = make(map[int]*CommandPage, 0) + 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 struct + func NewBotAI(ctx *cli.Context, userID int64, userName string) *BotAI + func (ai *BotAI) Exit() + func (ai *BotAI) Run() error + type BotCommand struct + func NewBotCommand(ctx context.Context, ai *BotAI) *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 struct + ID int + func NewClient() (*Client, error) + func (c *Client) Action(ctx *cli.Context) error + func (c *Client) After(ctx *cli.Context) error + func (c *Client) Run(arguments []string) error + func (c *Client) Stop() + type ClientBots struct + ID int + func NewClientBots() (*ClientBots, error) + func (c *ClientBots) Action(ctx *cli.Context) error + func (c *ClientBots) After(ctx *cli.Context) error + func (c *ClientBots) Run(arguments []string) error + func (c *ClientBots) Stop() + type Command struct + Cb func(*TcpClient, []string) bool + DefaultInput string + GotoPageID int + InputText string + Number int + PageID int + Text string + type CommandPage struct + Cmds []*Command + PageID int + ParentPageID int + type MC_AccountTest struct + AccountId int64 + Name string + type PromptUI struct + func NewPromptUI(ctx *cli.Context, client *TcpClient) *PromptUI + func (p *PromptUI) Run() error + type TcpClient struct + func NewTcpClient(ctx *cli.Context, ai *BotAI) *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)