social

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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlagFriend         = 0x01
	FlagIgnored        = 0x02
	FlagMuted          = 0x04
	FlagRecruitAFriend = 0x08
)
View Source
const (
	FriendDBError         = 0x00
	FriendListFull        = 0x01
	FriendOnline          = 0x02
	FriendOffline         = 0x03
	FriendNotFound        = 0x04
	FriendRemoved         = 0x05
	FriendAddedOnline     = 0x06
	FriendAddedOffline    = 0x07
	FriendAlready         = 0x08
	FriendSelf            = 0x09
	FriendEnemy           = 0x0A
	FriendIgnoreFull      = 0x0B
	FriendIgnoreSelf      = 0x0C
	FriendIgnoreNotFound  = 0x0D
	FriendIgnoreAlready   = 0x0E
	FriendIgnoreAdded     = 0x0F
	FriendIgnoreRemoved   = 0x10
	FriendIgnoreAmbiguous = 0x11 // That name is ambiguous, type more of the player's server name
	FriendMuteFull        = 0x12
	FriendMuteSelf        = 0x13
	FriendMuteNotFound    = 0x14
	FriendMuteAlready     = 0x15
	FriendMuteAdded       = 0x16
	FriendMuteRemoved     = 0x17
	FriendMuteAmbiguous   = 0x18 // That name is ambiguous, type more of the player's server name
	FriendUnk1            = 0x19 // no message at client
	FriendUnk2            = 0x1A
	FriendUnk3            = 0x1B
	FriendUnknown         = 0x1C // Unknown friend response from server
)
View Source
const DefaultContactFlags uint32 = 0x7

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	Type packet.WorldType
	Name string
}

func (*Add) Decode

func (add *Add) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*Add) Encode

func (add *Add) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type Contact

type Contact struct {
	Player guid.GUID
	Flags  uint32
	Note   string
	ContactStatus
}

type ContactList

type ContactList struct {
	Flags    uint32
	Contacts []Contact
}

func (*ContactList) Decode

func (cl *ContactList) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*ContactList) Encode

func (cl *ContactList) Encode(build vsn.Build, out *packet.WorldPacket) error

type ContactStatus

type ContactStatus struct {
	Status Status
	AreaID uint32
	Level  uint32
	Class  uint32
}

func (*ContactStatus) Decode

func (c *ContactStatus) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*ContactStatus) Encode

func (c *ContactStatus) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type Delete

type Delete struct {
	Type packet.WorldType
	ID   guid.GUID
}

func (*Delete) Decode

func (del *Delete) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*Delete) Encode

func (del *Delete) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type FriendResult

type FriendResult uint8

type FriendStatus

type FriendStatus struct {
	Result FriendResult
	ID     guid.GUID
	Note   string
	ContactStatus
}

func (*FriendStatus) Decode

func (fs *FriendStatus) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*FriendStatus) Encode

func (fs *FriendStatus) Encode(build vsn.Build, out *packet.WorldPacket) error

type PlayerList

type PlayerList struct {
	Type    packet.WorldType
	Players []guid.GUID
}

func (*PlayerList) Decode

func (l *PlayerList) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*PlayerList) Encode

func (l *PlayerList) Encode(build vsn.Build, out *packet.WorldPacket) error

type Status

type Status uint8
const (
	StatusOffline Status = 0x00
	StatusOnline  Status = 0x01
	StatusAFK     Status = 0x02
	StatusDND     Status = 0x04
	StatusRAF     Status = 0x08
)

type Who

type Who struct {
	DisplayCount uint32
	WhoMatches   []WhoMatch
}

func (*Who) Decode

func (w *Who) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*Who) Encode

func (w *Who) Encode(build vsn.Build, p *packet.WorldPacket) error

type WhoMatch

type WhoMatch struct {
	PlayerName string
	GuildName  string
	Level      uint32
	Class      uint32
	Race       uint32
	ZoneID     uint32
}

type WhoRequest

type WhoRequest struct {
	LevelMin, LevelMax    uint32
	PlayerName, GuildName string
	RaceMask, ClassMask   uint32
	ZonesCount            uint32
	Strings               []string
}

func (*WhoRequest) Decode

func (wr *WhoRequest) Decode(build vsn.Build, e *packet.WorldPacket) error

Jump to

Keyboard shortcuts

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