Documentation
¶
Index ¶
- Constants
- Variables
- func EncodeResult(build vsn.Build, out io.Writer, pr Result) error
- type CommandResult
- type Declination
- type GroupList
- type GroupMember
- type GroupMemberStatus
- type GroupType
- type GroupUpdateFlags
- type InstanceStatus
- type Invitation
- type InviteRequest
- type LfgRoleFlag
- type LootMethod
- type MapDifficulty
- type MemberAuraState
- type MemberStats
- type MemberStatus
- type Operation
- type RequestMemberStats
- type Result
- type ResultDescriptor
- type SetLeader
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 ¶
View Source
var ResultDescriptors = map[vsn.BuildRange]ResultDescriptor{ {0, 3368}: { OK: 0, BadPlayerName: 1, TargetNotInGroup: 2, TargetNotInInstance: 3, GroupFull: 4, AlreadyInGroup: 5, NotInGroup: 6, NotLeader: 7, WrongFaction: 8, IgnoringYou: 9, InviteRestricted: 13, }, {5875, 6005}: { OK: 0, BadPlayerName: 1, TargetNotInGroup: 2, GroupFull: 3, AlreadyInGroup: 4, NotInGroup: 5, NotLeader: 6, WrongFaction: 7, IgnoringYou: 8, }, {vsn.V2_0_1, vsn.Max}: { OK: 0, BadPlayerName: 1, TargetNotInGroup: 2, TargetNotInInstance: 3, GroupFull: 4, AlreadyInGroup: 5, NotInGroup: 6, NotLeader: 7, WrongFaction: 8, IgnoringYou: 9, LFGPending: 12, InviteRestricted: 13, }, }
Functions ¶
Types ¶
type CommandResult ¶
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 }
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 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 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 RequestMemberStats ¶
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 ResultDescriptor ¶
Click to show internal directories.
Click to hide internal directories.