client

package
v0.0.0-...-382259f Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Auth       *auth.Client
	Player     string
	PlayerGUID guid.GUID
	Config     *Config
	RealmList  *packet.RealmList_S
	Warden     *warden.Warden
	Crypter    *packet.Crypter
	SessionKey []byte
	Handlers   map[packet.WorldType]*ClientHandler
}

func New

func New(cfg Config) (*Client, error)

func (*Client) Connect

func (cl *Client) Connect(ip string) error

func (*Client) Handle

func (cl *Client) Handle() error

func (*Client) HandleActions

func (cl *Client) HandleActions(d []byte)

func (*Client) HandleBindPointUpdate

func (cl *Client) HandleBindPointUpdate(d []byte)

func (*Client) HandleCharList

func (cl *Client) HandleCharList(b []byte)

func (*Client) HandleCompressedUpdate

func (cl *Client) HandleCompressedUpdate(d []byte)

func (*Client) HandleDanceMoves

func (cl *Client) HandleDanceMoves(d []byte)

func (*Client) HandleEquip

func (cl *Client) HandleEquip(d []byte)

func (*Client) HandleForcedReactions

func (cl *Client) HandleForcedReactions(d []byte)

func (*Client) HandleLogin

func (cl *Client) HandleLogin(b []byte)

func (*Client) HandleMOTD

func (cl *Client) HandleMOTD(b []byte)

func (*Client) HandleMessage

func (cl *Client) HandleMessage(b []byte)

func (*Client) HandleReputations

func (cl *Client) HandleReputations(d []byte)

func (*Client) HandleSocialList

func (cl *Client) HandleSocialList(d []byte)

func (*Client) HandleSpellList

func (cl *Client) HandleSpellList(d []byte)

func (*Client) HandleUpdateData

func (cl *Client) HandleUpdateData(d []byte)

func (*Client) HandleWarden

func (cl *Client) HandleWarden(data []byte)

func (*Client) InitWarden

func (cl *Client) InitWarden()

func (*Client) On

func (cl *Client) On(t packet.WorldType, fn func([]byte))

func (*Client) Send

func (c *Client) Send(gp *packet.GamePacket)

type ClientHandler

type ClientHandler struct {
	Type packet.WorldType
	Fn   func([]byte)
}

type Config

type Config struct {
	Version            uint32
	Username, Password string
	Player             string
	Realmlist          string
}

Jump to

Keyboard shortcuts

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