party

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: 7 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 (
	GroupNormal = 0
	GroupRaid   = 1
)
View Source
const (
	MemberOffline = 0x0000
	MemberOnline  = 0x0001 // Lua_UnitIsConnected
	MemberPVP     = 0x0002 // Lua_UnitIsPVP
	MemberDead    = 0x0004 // Lua_UnitIsDead
	MemberGhost   = 0x0008 // Lua_UnitIsGhost
	MemberPVPFFA  = 0x0010 // Lua_UnitIsPVPFreeForAll
	MemberZoneOut = 0x0020 // Lua_GetPlayerMapPosition
	MemberAFK     = 0x0040 // Lua_UnitIsAFK
	MemberDND     = 0x0080 // Lua_UnitIsDND
)
View Source
const (
	GroupUpdateNone            = 0x00000000 // nothing
	GroupUpdateStatus          = 0x00000001 // uint16, flags
	GroupUpdateCurrentHealth   = 0x00000002 // uint32
	GroupUpdateMaxHealth       = 0x00000004 // uint32
	GroupUpdatePowerType       = 0x00000008 // uint8
	GroupUpdateCurrentPower    = 0x00000010 // uint16
	GroupUpdateMaxPower        = 0x00000020 // uint16
	GroupUpdateLevel           = 0x00000040 // uint16
	GroupUpdateZone            = 0x00000080 // uint16
	GroupUpdatePosition        = 0x00000100 // uint16, uint16
	GroupUpdateAuras           = 0x00000200 // uint64 mask, for each bit set uint32 spellid + uint8 unk
	GroupUpdatePetGUID         = 0x00000400 // uint64 pet guid
	GroupUpdatePetName         = 0x00000800 // pet name, nullptr terminated string
	GroupUpdatePetModelID      = 0x00001000 // uint16, model id
	GroupUpdatePetCurrentHP    = 0x00002000 // uint32 pet cur health
	GroupUpdatePetMaxHP        = 0x00004000 // uint32 pet max health
	GroupUpdatePetPowerType    = 0x00008000 // uint8 pet power type
	GroupUpdatePetCurrentPower = 0x00010000 // uint16 pet cur power
	GroupUpdatePetMaxPower     = 0x00020000 // uint16 pet max power
	GroupUpdatePetAuras        = 0x00040000 // uint64 mask, for each bit set uint32 spellid + uint8 unk, pet auras...
	GroupUpdateVehicleSeat     = 0x00080000 // uint32 vehicle_seat_id (index from VehicleSeat.dbc)
	GroupUpdatePet             = 0x0007FC00 // all pet flags
	GroupUpdateFull            = 0x0007FFFF // all known flags
)

Variables

Functions

func EncodeResult

func EncodeResult(build vsn.Build, out io.Writer, pr Result) error

Types

type CommandResult

type CommandResult struct {
	Operation Operation
	Member    string
	Result    Result
}

func (*CommandResult) Decode

func (pcr *CommandResult) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*CommandResult) Encode

func (pcr *CommandResult) Encode(build vsn.Build, out *packet.WorldPacket) error

type Declination

type Declination struct {
	From string
}

func (*Declination) Decode

func (d *Declination) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*Declination) Encode

func (d *Declination) Encode(build vsn.Build, out *packet.WorldPacket) error

type GroupList

type GroupList struct {
	GroupType         GroupType
	SubGroup          uint8
	Flags             GroupUpdateFlags
	RolesAssigned     uint8
	GroupTypeStatus   InstanceStatus
	LFGentry          uint32
	GUID              guid.GUID
	Counter           int32
	Members           []GroupMember
	Leader            guid.GUID
	LootMethod        LootMethod
	Looter            guid.GUID
	LootThreshold     models.ItemQuality
	DungeonDifficulty MapDifficulty
	RaidDifficulty    MapDifficulty

	// alpha only:
	LeaderName string
}

func (*GroupList) Decode

func (list *GroupList) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*GroupList) Encode

func (list *GroupList) Encode(build vsn.Build, out *packet.WorldPacket) (err error)

type GroupMember

type GroupMember struct {
	Name        string
	GUID        guid.GUID
	Status      GroupMemberStatus
	SubGroup    uint8
	UpdateFlags GroupUpdateFlags
	LfgRole     LfgRoleFlag
}

func (*GroupMember) Decode

func (member *GroupMember) Decode(build vsn.Build, in *packet.WorldPacket) (err error)

func (*GroupMember) Encode

func (member *GroupMember) Encode(build vsn.Build, out *packet.WorldPacket) error

type GroupMemberStatus

type GroupMemberStatus uint8

type GroupType

type GroupType uint8
const (
	Normal              GroupType = 0x00
	Battleground        GroupType = 0x01
	Raid                GroupType = 0x02
	LFGRestricted       GroupType = 0x04
	LookingForDungeon   GroupType = 0x08
	Unk10               GroupType = 0x10
	OnePersonParty      GroupType = 0x20
	IsEveryoneAssistant GroupType = 0x40
)

type GroupUpdateFlags

type GroupUpdateFlags uint32

type InstanceStatus

type InstanceStatus uint
const (
	NotSaved  InstanceStatus = 0
	Saved     InstanceStatus = 1
	Completed InstanceStatus = 2
)

type Invitation

type Invitation struct {
	From string
}

func (*Invitation) Decode

func (iv *Invitation) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*Invitation) Encode

func (iv *Invitation) Encode(build vsn.Build, out *packet.WorldPacket) error

type InviteRequest

type InviteRequest struct {
	To string
}

func (*InviteRequest) Decode

func (ir *InviteRequest) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*InviteRequest) Encode

func (ir *InviteRequest) Encode(build vsn.Build, out *packet.WorldPacket) error

type LfgRoleFlag

type LfgRoleFlag uint8

type LootMethod

type LootMethod uint8

type MapDifficulty

type MapDifficulty uint8

type MemberAuraState

type MemberAuraState struct {
	SpellID     int32
	Flags       uint16
	ActiveFlags uint32
	Points      []float32
}

type MemberStats

type MemberStats struct {
	ChangeMask uint32

	Member guid.GUID

	Status        MemberStatus
	CurrentHealth uint32
	MaxHealth     uint32

	PowerType uint8

	Power uint16

	MaxPower uint16

	Level uint16

	ZoneID uint16

	PositionX uint16
	PositionY uint16

	Auras []MemberAuraState

	Pet              guid.GUID
	PetName          string
	PetDisplayID     uint32
	PetCurrentHealth uint32
	PetMaxHealth     uint32
	PetPowerType     uint16
	PetPower         uint16
	PetMaxPower      uint16
	PetAuras         []MemberAuraState

	VehicleSeat uint32
}

func (*MemberStats) Change

func (p *MemberStats) Change(status uint32) bool

func (*MemberStats) Decode

func (p *MemberStats) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*MemberStats) Encode

func (p *MemberStats) Encode(build vsn.Build, out *packet.WorldPacket) error

type MemberStatus

type MemberStatus uint8

type Operation

type Operation uint32
const (
	Invite Operation = 0
	Leave  Operation = 2
	Swap   Operation = 4
)

type RequestMemberStats

type RequestMemberStats struct {
	Member guid.GUID
}

func (*RequestMemberStats) Decode

func (p *RequestMemberStats) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*RequestMemberStats) Encode

func (p *RequestMemberStats) Encode(build vsn.Build, out *packet.WorldPacket) error

type Result

type Result uint32
const (
	OK Result = iota
	BadPlayerName
	TargetNotInGroup
	TargetNotInInstance
	GroupFull
	AlreadyInGroup
	NotInGroup
	NotLeader
	WrongFaction
	IgnoringYou
	InviteRestricted
	LFGPending
)

func DecodeResult

func DecodeResult(build vsn.Build, in io.Reader) (Result, error)

type ResultDescriptor

type ResultDescriptor map[Result]uint32

type SetLeader

type SetLeader struct {
	Name string
}

func (*SetLeader) Decode

func (set *SetLeader) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*SetLeader) Encode

func (set *SetLeader) 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