gossip

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IconChat      = iota // White chat bubble
	IconVendor           // 1 Brown bag
	IconTaxi             // 2 Flight
	IconTrainer          // 3 Book
	IconInteract1        // 4	Interaction wheel
	IconInteract2        // 5	Interaction wheel
	IconGold             // 6 Brown bag with yellow dot (gold)
	IconTalk             // White chat bubble with black dots (...)
	IconTabard           // 8 Tabard
	IconBattle           // 9 Two swords
	IconDot              // 10 Yellow dot
	IconChat11           // 11	White chat bubble
	IconChat12           // 12	White chat bubble
	IconChat13           // 13	White chat bubble
	IconInvalid14        // 14	INVALID - DO NOT USE
	IconInvalid15        // 15	INVALID - DO NOT USE
	IconChat16           // 16	White chat bubble
	IconChat17           // 17	White chat bubble
	IconChat18           // 18	White chat bubble
	IconChat19           // 19	White chat bubble
	IconChat20           // 20	White chat bubble
	IconTransmog         // 21	Transmogrifier?
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hello

type Hello struct {
	ID guid.GUID
}

func (*Hello) Decode

func (h *Hello) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*Hello) Encode

func (h *Hello) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type Item

type Item struct {
	ItemID  uint32
	Icon    uint8
	Coded   bool
	Message string
}
type Menu struct {
	Speaker    guid.GUID
	TextEntry  uint32
	Items      []Item
	QuestItems []QuestItem
}

func NewMenu

func NewMenu(id guid.GUID, textID uint32) *Menu
func (g *Menu) AddItem(i Item)
func (g *Menu) Encode(build vsn.Build, p *packet.WorldPacket) error
func (g *Menu) SetTextEntry(entry uint32)

type QuestItem

type QuestItem struct {
	QuestID    uint32
	QuestIcon  uint32
	QuestLevel int32
	QuestTitle string
}

type SelectOption

type SelectOption struct {
	ID     guid.GUID
	Option uint32
}

func (*SelectOption) Decode

func (so *SelectOption) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*SelectOption) Encode

func (so *SelectOption) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type TextQuery

type TextQuery struct {
	Entry uint32
}

func (*TextQuery) Decode

func (tq *TextQuery) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*TextQuery) Encode

func (tq *TextQuery) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type TextUpdate

type TextUpdate struct {
	Entry  uint32
	Locale i18n.Locale
	Text   *models.NPCText
}

func (*TextUpdate) Encode

func (tu *TextUpdate) Encode(build vsn.Build, out *packet.WorldPacket) error

Jump to

Keyboard shortcuts

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