eqStruct

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

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GuildEntryMax = 512

Variables

This section is empty.

Functions

func EQRead

func EQRead[T EQTypes](b []byte, s EQStruct, field *T, size int) error

func EQReadBigEndian

func EQReadBigEndian[T EQTypes](b []byte, s EQStruct, field *T, size int) error

func EQReadBytes

func EQReadBytes(b []byte, s EQStruct, field *[]byte, maxLength int) error

func EQReadFloat32

func EQReadFloat32(b []byte, s EQStruct, field *float32) error

func EQReadInt16

func EQReadInt16(b []byte, s EQStruct, field *int16) error

func EQReadInt16BigEndian

func EQReadInt16BigEndian(b []byte, s EQStruct, field *int16) error

func EQReadInt32

func EQReadInt32(b []byte, s EQStruct, field *int32) error

func EQReadInt32BigEndian

func EQReadInt32BigEndian(b []byte, s EQStruct, field *int32) error

func EQReadInt8

func EQReadInt8(b []byte, s EQStruct, field *int8) error

func EQReadString

func EQReadString(b []byte, s EQStruct, field *string, maxLength int) error

func EQReadStringNullTerm

func EQReadStringNullTerm(b []byte, s EQStruct, field *string) error

func EQReadUint16

func EQReadUint16(b []byte, s EQStruct, field *uint16) error

func EQReadUint16BigEndian

func EQReadUint16BigEndian(b []byte, s EQStruct, field *uint16) error

func EQReadUint32

func EQReadUint32(b []byte, s EQStruct, field *uint32) error

func EQReadUint32BigEndian

func EQReadUint32BigEndian(b []byte, s EQStruct, field *uint32) error

func EQReadUint8

func EQReadUint8(b []byte, s EQStruct, field *uint8) error

Types

type AA_Array

type AA_Array struct {
	AA    uint8
	Value uint8
}

type Action

type Action struct {
	Target        uint16 // 00
	Source        uint16 // 02
	Level         uint16 // 04
	TargetLevel   uint16 // 06
	InstrumentMod int32  // 08
	Force         float32
	Sequence      float32
	PushupAngle   float32
	Type          uint8
	TapAmount     int16
	Spell         uint16
	BuffUnknown   uint8
	// contains filtered or unexported fields
}

func (*Action) EQType

func (p *Action) EQType() EQType

func (*Action) Proto

func (p *Action) Proto() *eqstruct.Action

func (*Action) ProtoMess

func (p *Action) ProtoMess() proto.Message

func (*Action) Unmarshal

func (p *Action) Unmarshal(b []byte) (int, error)

type Animation

type Animation struct {
	SpawnID uint16
	Target  uint16
	Action  uint8
	Value   uint8
	// contains filtered or unexported fields
}

func (*Animation) EQType

func (p *Animation) EQType() EQType

func (*Animation) Proto

func (p *Animation) Proto() *eqstruct.Animation

func (*Animation) ProtoMess

func (p *Animation) ProtoMess() proto.Message

func (*Animation) SetPointer

func (p *Animation) SetPointer(i int)

func (*Animation) Unmarshal

func (p *Animation) Unmarshal(b []byte) (int, error)

type BeginCast

type BeginCast struct {
	CasterID uint16
	SpellID  uint16
	CastTime uint16
	// contains filtered or unexported fields
}

func (*BeginCast) EQType

func (p *BeginCast) EQType() EQType

func (*BeginCast) Proto

func (p *BeginCast) Proto() *eqstruct.BeginCast

func (*BeginCast) ProtoMess

func (p *BeginCast) ProtoMess() proto.Message

func (*BeginCast) Unmarshal

func (p *BeginCast) Unmarshal(b []byte) (int, error)

type BindPoint

type BindPoint struct {
	ZoneId  uint32
	X, Y, Z float32
	Heading float32
}

type BuffFade

type BuffFade struct {
	EntityID     uint16
	BuffType     uint8
	Level        uint8
	BardModifier uint8
	Activated    uint8
	SpellID      uint16
	Duration     uint16
	Counters     uint16
	SlotNumber   uint16
	// contains filtered or unexported fields
}

func (*BuffFade) EQType

func (p *BuffFade) EQType() EQType

func (*BuffFade) Proto

func (p *BuffFade) Proto() *eqstruct.BuffFade

func (*BuffFade) ProtoMess

func (p *BuffFade) ProtoMess() proto.Message

func (*BuffFade) SetPointer

func (p *BuffFade) SetPointer(i int)

func (*BuffFade) Unmarshal

func (p *BuffFade) Unmarshal(b []byte) (int, error)

type CastSpell

type CastSpell struct {
	SpellID       uint16
	Slot          uint16
	SpellCRC      uint32
	TargetID      uint16
	InventorySlot uint16
	// contains filtered or unexported fields
}

func (*CastSpell) EQType

func (p *CastSpell) EQType() EQType

func (*CastSpell) Proto

func (p *CastSpell) Proto() *eqstruct.CastSpell

func (*CastSpell) ProtoMess

func (p *CastSpell) ProtoMess() proto.Message

func (*CastSpell) SetPointer

func (p *CastSpell) SetPointer(i int)

func (*CastSpell) Unmarshal

func (p *CastSpell) Unmarshal(b []byte) (int, error)

type ChannelMessage

type ChannelMessage struct {
	TargetName    string // MAX64
	Sender        string // MAX64
	Language      uint16
	ChannelNum    uint16
	LanguageSkill uint16
	Message       string
	// contains filtered or unexported fields
}

func (*ChannelMessage) EQType

func (p *ChannelMessage) EQType() EQType

func (*ChannelMessage) Proto

func (*ChannelMessage) ProtoMess

func (p *ChannelMessage) ProtoMess() proto.Message

func (*ChannelMessage) Unmarshal

func (p *ChannelMessage) Unmarshal(b []byte) (int, error)

type Charm

type Charm struct {
	OwnerID uint16
	PetID   uint16
	Command uint16
	// contains filtered or unexported fields
}

func (*Charm) EQType

func (p *Charm) EQType() EQType

func (*Charm) Proto

func (p *Charm) Proto() *eqstruct.Charm

func (*Charm) ProtoMess

func (p *Charm) ProtoMess() proto.Message

func (*Charm) SetPointer

func (p *Charm) SetPointer(i int)

func (*Charm) Unmarshal

func (p *Charm) Unmarshal(b []byte) (int, error)

type ClientUpdate

type ClientUpdate struct {
	ClientID string
	// contains filtered or unexported fields
}

func (*ClientUpdate) EQType

func (p *ClientUpdate) EQType() EQType

func (*ClientUpdate) Proto

func (p *ClientUpdate) Proto() *eqstruct.ClientUpdate

func (*ClientUpdate) ProtoMess

func (p *ClientUpdate) ProtoMess() proto.Message

func (*ClientUpdate) Unmarshal

func (p *ClientUpdate) Unmarshal(b []byte) (int, error)

type Consider

type Consider struct {
	PlayerID uint16
	TargetID uint16
	Faction  uint32
	Level    uint32
	HPCur    int32
	HPMax    int32
	PVPCon   uint8
	// contains filtered or unexported fields
}

func (*Consider) EQType

func (p *Consider) EQType() EQType

func (*Consider) Proto

func (p *Consider) Proto() *eqstruct.Consider

func (*Consider) ProtoMess

func (p *Consider) ProtoMess() proto.Message

func (*Consider) Unmarshal

func (p *Consider) Unmarshal(b []byte) (int, error)

type CorpsePosition

type CorpsePosition struct {
	EntityID uint16 // 000
	Y        float32
	X        float32
	Z        float32
	// contains filtered or unexported fields
}

func (*CorpsePosition) EQType

func (p *CorpsePosition) EQType() EQType

func (*CorpsePosition) Proto

func (*CorpsePosition) ProtoMess

func (p *CorpsePosition) ProtoMess() proto.Message

func (*CorpsePosition) SetPointer

func (p *CorpsePosition) SetPointer(i int)

func (*CorpsePosition) Unmarshal

func (p *CorpsePosition) Unmarshal(b []byte) (int, error)

type Damage

type Damage struct {
	Target      uint16
	Source      uint16
	Type        uint16
	SpellID     uint16
	Damage      int32
	Force       float32
	Sequence    float32
	PushupAngle float32
	// contains filtered or unexported fields
}

func (*Damage) EQType

func (p *Damage) EQType() EQType

func (*Damage) Proto

func (p *Damage) Proto() *eqstruct.Damage

func (*Damage) ProtoMess

func (p *Damage) ProtoMess() proto.Message

func (*Damage) Unmarshal

func (p *Damage) Unmarshal(b []byte) (int, error)

type Death

type Death struct {
	SpawnID     uint16 // 000
	KillerID    uint16
	CorpseID    uint16
	SpawnLevel  uint8
	SpellID     uint16
	AttackSkill uint8
	Damage      int32
	IsPC        uint8
	// contains filtered or unexported fields
}

func (*Death) EQType

func (p *Death) EQType() EQType

func (*Death) Proto

func (p *Death) Proto() *eqstruct.Death

func (*Death) ProtoMess

func (p *Death) ProtoMess() proto.Message

func (*Death) Unmarshal

func (p *Death) Unmarshal(b []byte) (int, error)

type DeleteSpawn

type DeleteSpawn struct {
	SpawnID uint16 // 000
	// contains filtered or unexported fields
}

func (*DeleteSpawn) EQType

func (p *DeleteSpawn) EQType() EQType

func (*DeleteSpawn) Proto

func (p *DeleteSpawn) Proto() *eqstruct.DeleteSpawn

func (*DeleteSpawn) ProtoMess

func (p *DeleteSpawn) ProtoMess() proto.Message

func (*DeleteSpawn) Unmarshal

func (p *DeleteSpawn) Unmarshal(b []byte) (int, error)

type DoorClick

type DoorClick struct {
	DoorID   uint8
	ItemID   uint16
	PlayerID uint16
	// contains filtered or unexported fields
}

func (*DoorClick) EQType

func (p *DoorClick) EQType() EQType

func (*DoorClick) Proto

func (p *DoorClick) Proto() *eqstruct.ClickDoor

func (*DoorClick) ProtoMess

func (p *DoorClick) ProtoMess() proto.Message

func (*DoorClick) SetPointer

func (p *DoorClick) SetPointer(i int)

func (*DoorClick) Unmarshal

func (p *DoorClick) Unmarshal(b []byte) (int, error)

type EQAppearanceType

type EQAppearanceType uint16
const (
	AT_Die         EQAppearanceType = 0
	AT_WhoLevel    EQAppearanceType = 1
	AT_MaxHP       EQAppearanceType = 2
	AT_Invis       EQAppearanceType = 3
	AT_PVP         EQAppearanceType = 4
	AT_Light       EQAppearanceType = 5
	AT_Anim        EQAppearanceType = 14
	AT_Sneak       EQAppearanceType = 15
	AT_SpawnID     EQAppearanceType = 16
	AT_HP          EQAppearanceType = 17
	AT_LinkDead    EQAppearanceType = 18
	AT_Levitate    EQAppearanceType = 19
	AT_GM          EQAppearanceType = 20
	AT_Anon        EQAppearanceType = 21
	AT_GuildID     EQAppearanceType = 22
	AT_GuildRank   EQAppearanceType = 23
	AT_AFK         EQAppearanceType = 24
	AT_Pet         EQAppearanceType = 25
	AT_SummonedPC  EQAppearanceType = 27
	AT_Split       EQAppearanceType = 28
	AT_Size        EQAppearanceType = 29
	AT_NPC         EQAppearanceType = 30
	AT_NPCName     EQAppearanceType = 31
	AT_DamageState EQAppearanceType = 44
	AT_Trader      EQAppearanceType = 300
)

func EQAppearanceTypeString

func EQAppearanceTypeString(s string) (EQAppearanceType, error)

EQAppearanceTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EQAppearanceTypeValues

func EQAppearanceTypeValues() []EQAppearanceType

EQAppearanceTypeValues returns all values of the enum

func (EQAppearanceType) IsAEQAppearanceType

func (i EQAppearanceType) IsAEQAppearanceType() bool

IsAEQAppearanceType returns "true" if the value is listed in the enum definition. "false" otherwise

func (EQAppearanceType) String

func (i EQAppearanceType) String() string

type EQStruct

type EQStruct interface {
	EQType() EQType

	Unmarshal(b []byte) (int, error) // This is only temporary until the VM is implemented.
	ProtoMess() proto.Message
	// contains filtered or unexported methods
}

type EQType

type EQType uint32
const (
	EQT_Unknown EQType = iota
	EQT_PlayerProfile
	EQT_PlayEverquestResponse
	EQT_ZoneServerInfo
	EQT_PlayRequest
	EQT_ZoneEntryServer
	EQT_LogServer
	EQT_EnterWorld
	EQT_LoginInfo
	EQT_LoginAccepted
	EQT_SpawnPositionUpdate
	EQT_SpawnPositionUpdates
	EQT_ZoneSpawns
	EQT_ZoneSpawn
	EQT_ClientUpdate
	EQT_ManaUpdate
	EQT_NewZone
	EQT_StaminaUpdate
	EQT_MoveDoor
	EQT_SpawnAppearance
	EQT_Action
	EQT_BeginCast
	EQT_Damage
	EQT_ExpUpdate
	EQT_Consider
	EQT_Target
	EQT_HPUpdate
	EQT_Object
	EQT_DeleteSpawn
	EQT_ZoneEntryClient
	EQT_ServerMOTD
	EQT_WearChange
	EQT_TintStruct
	EQT_Death
	EQT_RaidGeneral
	EQT_RaidAddMember
	EQT_RaidCreate
	EQT_WorldApprove
	EQT_GuildsList
	EQT_GuildEntry
	EQT_GuildUpdate
	EQT_ZonePoints
	EQT_ZonePoint
	EQT_LFG
	EQT_Weather
	EQT_Time
	EQT_SpawnDoor
	EQT_SpawnDoors
	EQT_LFGAppearance
	EQT_ChannelMessage
	EQT_ZoneChange
	EQT_ZoneChangeReq
	EQT_ManaChange
	EQT_CorpsePosition
	EQT_DoorClick
	EQT_MessageFormatted
	EQT_BuffFade
	EQT_Animation
	EQT_Charm
	EQT_CastSpell
	EQT_MemorizeSpell
	EQT_RandomReq
	EQT_RandomReply
	EQT_EntityID
	EQT_PetCommand
	EQT_ItemMove
	EQT_MessageSpecial
)

func EQTypeString

func EQTypeString(s string) (EQType, error)

EQTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func EQTypeValues

func EQTypeValues() []EQType

EQTypeValues returns all values of the enum

func (EQType) IsAEQType

func (i EQType) IsAEQType() bool

IsAEQType returns "true" if the value is listed in the enum definition. "false" otherwise

func (EQType) String

func (i EQType) String() string

func (*EQType) TypeOf

func (t *EQType) TypeOf() reflect.Type

type EQTypes

type EQTypes interface {
	uint8 | uint16 | uint32 | int8 | int16 | int32 | float32 | string | []byte
}

type EnterWorld

type EnterWorld struct {
	Name string // 000
	// contains filtered or unexported fields
}

func (*EnterWorld) EQType

func (p *EnterWorld) EQType() EQType

func (*EnterWorld) Proto

func (p *EnterWorld) Proto() *eqstruct.EnterWorld

func (*EnterWorld) ProtoMess

func (p *EnterWorld) ProtoMess() proto.Message

func (*EnterWorld) Unmarshal

func (p *EnterWorld) Unmarshal(b []byte) (int, error)

type EntityID

type EntityID struct {
	EntityID uint16
	// contains filtered or unexported fields
}

func (*EntityID) EQType

func (p *EntityID) EQType() EQType

func (*EntityID) Proto

func (p *EntityID) Proto() *eqstruct.EntityID

func (*EntityID) ProtoMess

func (p *EntityID) ProtoMess() proto.Message

func (*EntityID) SetPointer

func (p *EntityID) SetPointer(i int)

func (*EntityID) Unmarshal

func (p *EntityID) Unmarshal(b []byte) (int, error)

type ExpUpdate

type ExpUpdate struct {
	Exp uint32 // 000
	// contains filtered or unexported fields
}

func (*ExpUpdate) EQType

func (p *ExpUpdate) EQType() EQType

func (*ExpUpdate) Proto

func (p *ExpUpdate) Proto() *eqstruct.ExpUpdate

func (*ExpUpdate) ProtoMess

func (p *ExpUpdate) ProtoMess() proto.Message

func (*ExpUpdate) SetPointer

func (p *ExpUpdate) SetPointer(i int)

func (*ExpUpdate) Unmarshal

func (p *ExpUpdate) Unmarshal(b []byte) (int, error)

type GuildEntry

type GuildEntry struct {
	GuildID uint32
	Name    string // MAX64
	Exists  uint16
	// contains filtered or unexported fields
}

func (*GuildEntry) EQType

func (p *GuildEntry) EQType() EQType

func (*GuildEntry) Proto

func (p *GuildEntry) Proto() *eqstruct.GuildEntry

func (*GuildEntry) ProtoMess

func (p *GuildEntry) ProtoMess() proto.Message

func (*GuildEntry) Unmarshal

func (p *GuildEntry) Unmarshal(b []byte) (int, error)

type GuildUpdate

type GuildUpdate struct {
	GuildID uint32
	Guild   *GuildEntry
	// contains filtered or unexported fields
}

func (*GuildUpdate) EQType

func (p *GuildUpdate) EQType() EQType

func (*GuildUpdate) Proto

func (p *GuildUpdate) Proto() *eqstruct.GuildUpdate

func (*GuildUpdate) ProtoMess

func (p *GuildUpdate) ProtoMess() proto.Message

func (*GuildUpdate) Unmarshal

func (p *GuildUpdate) Unmarshal(b []byte) (int, error)

type GuildsList

type GuildsList struct {
	Header []uint8
	Guilds []*GuildEntry
	// contains filtered or unexported fields
}

func (*GuildsList) EQType

func (p *GuildsList) EQType() EQType

func (*GuildsList) Proto

func (p *GuildsList) Proto() *eqstruct.GuildList

func (*GuildsList) ProtoMess

func (p *GuildsList) ProtoMess() proto.Message

func (*GuildsList) Unmarshal

func (p *GuildsList) Unmarshal(b []byte) (int, error)

type HPUpdate

type HPUpdate struct {
	SpawnID uint32 // 000
	HPCur   int32
	HPMax   int32
	// contains filtered or unexported fields
}

func (*HPUpdate) EQType

func (p *HPUpdate) EQType() EQType

func (*HPUpdate) Proto

func (p *HPUpdate) Proto() *eqstruct.HPUpdate

func (*HPUpdate) ProtoMess

func (p *HPUpdate) ProtoMess() proto.Message

func (*HPUpdate) Unmarshal

func (p *HPUpdate) Unmarshal(b []byte) (int, error)

type ItemMove

type ItemMove struct {
	SlotFrom uint32
	SlotTo   uint32
	StackNum uint32
	// contains filtered or unexported fields
}

func (*ItemMove) EQType

func (p *ItemMove) EQType() EQType

func (*ItemMove) Proto

func (p *ItemMove) Proto() *eqstruct.ItemMove

func (*ItemMove) ProtoMess

func (p *ItemMove) ProtoMess() proto.Message

func (*ItemMove) SetPointer

func (p *ItemMove) SetPointer(i int)

func (*ItemMove) Unmarshal

func (p *ItemMove) Unmarshal(b []byte) (int, error)

type LFG

type LFG struct {
	Name  string // MAX64
	Value int32
	// contains filtered or unexported fields
}

func (*LFG) EQType

func (p *LFG) EQType() EQType

func (*LFG) Proto

func (p *LFG) Proto() *eqstruct.LFG

func (*LFG) ProtoMess

func (p *LFG) ProtoMess() proto.Message

func (*LFG) Unmarshal

func (p *LFG) Unmarshal(b []byte) (int, error)

type LFGAppearance

type LFGAppearance struct {
	EntityID int16
	Unknown  int16
	Value    int32
	// contains filtered or unexported fields
}

func (*LFGAppearance) EQType

func (p *LFGAppearance) EQType() EQType

func (*LFGAppearance) Proto

func (p *LFGAppearance) Proto() *eqstruct.LFGAppearance

func (*LFGAppearance) ProtoMess

func (p *LFGAppearance) ProtoMess() proto.Message

func (*LFGAppearance) Unmarshal

func (p *LFGAppearance) Unmarshal(b []byte) (int, error)

type LogServer

type LogServer struct {
	ShortName string // 032 Max32
	Address   string // 112 Max16
	Port      uint32 // 176
	// contains filtered or unexported fields
}

func (*LogServer) EQType

func (p *LogServer) EQType() EQType

func (*LogServer) Proto

func (p *LogServer) Proto() *eqstruct.LogServer

func (*LogServer) ProtoMess

func (p *LogServer) ProtoMess() proto.Message

func (*LogServer) Unmarshal

func (p *LogServer) Unmarshal(b []byte) (int, error)

type LoginAccepted

type LoginAccepted struct {
	Account string // 00 Max 10
	// contains filtered or unexported fields
}

func (*LoginAccepted) EQType

func (p *LoginAccepted) EQType() EQType

func (*LoginAccepted) Proto

func (p *LoginAccepted) Proto() *eqstruct.LoginInfo

func (*LoginAccepted) ProtoMess

func (p *LoginAccepted) ProtoMess() proto.Message

func (*LoginAccepted) Unmarshal

func (p *LoginAccepted) Unmarshal(b []byte) (int, error)

type LoginInfo

type LoginInfo struct {
	LoginInfo []byte // 000
	Account   string
	Password  string
	Zoning    uint8 // 192
	// contains filtered or unexported fields
}

func (*LoginInfo) EQType

func (p *LoginInfo) EQType() EQType

func (*LoginInfo) Proto

func (p *LoginInfo) Proto() *eqstruct.LoginInfo

func (*LoginInfo) ProtoMess

func (p *LoginInfo) ProtoMess() proto.Message

func (*LoginInfo) Unmarshal

func (p *LoginInfo) Unmarshal(b []byte) (int, error)

type ManaChange

type ManaChange struct {
	ManaCurr uint16
	SpellID  uint16
	// contains filtered or unexported fields
}

func (*ManaChange) EQType

func (p *ManaChange) EQType() EQType

func (*ManaChange) Proto

func (p *ManaChange) Proto() *eqstruct.ManaChange

func (*ManaChange) ProtoMess

func (p *ManaChange) ProtoMess() proto.Message

func (*ManaChange) SetPointer

func (p *ManaChange) SetPointer(i int)

func (*ManaChange) Unmarshal

func (p *ManaChange) Unmarshal(b []byte) (int, error)

type ManaUpdate

type ManaUpdate struct {
	SpawnID  uint16 // 000
	ManaCurr uint16
	// contains filtered or unexported fields
}

func (*ManaUpdate) EQType

func (p *ManaUpdate) EQType() EQType

func (*ManaUpdate) Proto

func (p *ManaUpdate) Proto() *eqstruct.ManaUpdate

func (*ManaUpdate) ProtoMess

func (p *ManaUpdate) ProtoMess() proto.Message

func (*ManaUpdate) Unmarshal

func (p *ManaUpdate) Unmarshal(b []byte) (int, error)

type MemorizeSpell

type MemorizeSpell struct {
	Slot     uint32
	SpellID  uint32
	Scribing uint32
	// contains filtered or unexported fields
}

func (*MemorizeSpell) EQType

func (p *MemorizeSpell) EQType() EQType

func (*MemorizeSpell) Proto

func (p *MemorizeSpell) Proto() *eqstruct.MemorizeSpell

func (*MemorizeSpell) ProtoMess

func (p *MemorizeSpell) ProtoMess() proto.Message

func (*MemorizeSpell) SetPointer

func (p *MemorizeSpell) SetPointer(i int)

func (*MemorizeSpell) Unmarshal

func (p *MemorizeSpell) Unmarshal(b []byte) (int, error)

type MessageFormatted

type MessageFormatted struct {
	StringID uint16
	Type     uint16
	Message  []byte
	// contains filtered or unexported fields
}

func (*MessageFormatted) EQType

func (p *MessageFormatted) EQType() EQType

func (*MessageFormatted) Proto

func (*MessageFormatted) ProtoMess

func (p *MessageFormatted) ProtoMess() proto.Message

func (*MessageFormatted) SetPointer

func (p *MessageFormatted) SetPointer(i int)

func (*MessageFormatted) Unmarshal

func (p *MessageFormatted) Unmarshal(b []byte) (int, error)

type MessageSpecial

type MessageSpecial struct {
	Type    uint16
	Message []byte
	// contains filtered or unexported fields
}

func (*MessageSpecial) EQType

func (p *MessageSpecial) EQType() EQType

func (*MessageSpecial) Proto

func (*MessageSpecial) ProtoMess

func (p *MessageSpecial) ProtoMess() proto.Message

func (*MessageSpecial) SetPointer

func (p *MessageSpecial) SetPointer(i int)

func (*MessageSpecial) Unmarshal

func (p *MessageSpecial) Unmarshal(b []byte) (int, error)

type MoveDoor

type MoveDoor struct {
	DoorID int8
	Action int8
	// contains filtered or unexported fields
}

func (*MoveDoor) EQType

func (p *MoveDoor) EQType() EQType

func (*MoveDoor) Proto

func (p *MoveDoor) Proto() *eqstruct.MoveDoor

func (*MoveDoor) ProtoMess

func (p *MoveDoor) ProtoMess() proto.Message

func (*MoveDoor) Unmarshal

func (p *MoveDoor) Unmarshal(b []byte) (int, error)

type NPC

type NPC uint8
const (
	T_Player        NPC = 0
	T_NPC           NPC = 1
	T_MonsterCorpse NPC = 2
	T_PlayerCorpse  NPC = 3
)

func NPCString

func NPCString(s string) (NPC, error)

NPCString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func NPCValues

func NPCValues() []NPC

NPCValues returns all values of the enum

func (NPC) IsANPC

func (i NPC) IsANPC() bool

IsANPC returns "true" if the value is listed in the enum definition. "false" otherwise

func (NPC) String

func (i NPC) String() string

type NewZone

type NewZone struct {
	Name                 string // 000 Max64
	NameShort            string // 64 Max32
	NameLong             string // 96 Max278
	Type                 uint8
	FogRed               uint8   // 375
	FogGreen             uint8   // 379
	FogBlue              uint8   // 383
	FogMinClip           float32 // 388
	FogMaxClip           float32 // 404
	Gravity              float32 // 420
	TimeType             uint8
	RainChance           uint8  // 425
	RainDuration         uint8  // 429
	SnowChance           uint8  // 433
	SnowDuration         uint8  // 437
	SpecialDates         []byte // 441
	SpecialCodes         []byte // 457 Max16
	TimeZone             int8
	Sky                  uint8
	WaterMusic           int16
	NormalMusicDay       int16
	NormalMusicNight     int16
	ZoneExpMult          float32
	SafeY                float32
	SafeX                float32
	SafeZ                float32
	MaxZ                 float32
	Underworld           float32
	ClipMin              float32
	ClipMax              float32
	ForageNovice         uint32
	ForageMedium         uint32
	ForageAdv            uint32
	FishingNovice        uint32
	FishingMedium        uint32
	FishingAdv           uint32
	SkyLock              uint32
	GraveyardTime        uint16
	ScriptPeriodicHour   uint32
	ScriptPeriodicMinute uint32
	ScriptPeriodicFast   uint32
	ScriptPlayerDead     uint32
	ScriptNPCDead        uint32
	ScriptPlayerEntering uint32
	// contains filtered or unexported fields
}

func (*NewZone) EQType

func (p *NewZone) EQType() EQType

func (*NewZone) Proto

func (p *NewZone) Proto() *eqstruct.NewZone

func (*NewZone) ProtoMess

func (p *NewZone) ProtoMess() proto.Message

func (*NewZone) Unmarshal

func (p *NewZone) Unmarshal(b []byte) (int, error)

type Object

type Object struct {
	LinkedList   []uint32
	Unknown008   uint32
	DropId       uint32
	ZoneId       uint16
	ZoneInstance uint16
	Heading      float32
	Z            float32
	X            float32
	Y            float32
	Name         string
	ObjectType   uint32
	SpawnId      uint32
	// contains filtered or unexported fields
}

func (*Object) EQType

func (p *Object) EQType() EQType

func (*Object) Proto

func (p *Object) Proto() *eqstruct.Object

func (*Object) ProtoMess

func (p *Object) ProtoMess() proto.Message

func (*Object) Unmarshal

func (p *Object) Unmarshal(b []byte) (int, error)

type PetCommand

type PetCommand struct {
	Command  uint32
	TargetID uint32
	// contains filtered or unexported fields
}

func (*PetCommand) EQType

func (p *PetCommand) EQType() EQType

func (*PetCommand) Proto

func (p *PetCommand) Proto() *eqstruct.PetCommand

func (*PetCommand) ProtoMess

func (p *PetCommand) ProtoMess() proto.Message

func (*PetCommand) SetPointer

func (p *PetCommand) SetPointer(i int)

func (*PetCommand) Unmarshal

func (p *PetCommand) Unmarshal(b []byte) (int, error)

type PlayRequest

type PlayRequest struct {
	IP string // 000
	// contains filtered or unexported fields
}

func (*PlayRequest) EQType

func (p *PlayRequest) EQType() EQType

func (*PlayRequest) Proto

func (p *PlayRequest) Proto() *eqstruct.PlayRequest

func (*PlayRequest) ProtoMess

func (p *PlayRequest) ProtoMess() proto.Message

func (*PlayRequest) Unmarshal

func (p *PlayRequest) Unmarshal(b []byte) (int, error)

type PlayerProfile

type PlayerProfile struct {
	Checksum                          uint32
	Name, LastName                    string
	UniqueGuildID                     uint32
	Gender                            uint8
	GenderChar                        string
	Race                              uint16
	Class                             uint16
	BodyType                          uint16
	Level                             uint8
	LevelChar                         string
	Exp                               uint32
	Points                            int16
	Mana                              int16
	CurHP                             int16
	Status                            uint16
	STR, STA, CHA, DEX, INT, AGI, WIS int16
	Face                              uint8
	EquipType                         []uint8
	EquipColor                        []TintStruct
	Inventory                         []int16
	Languages                         []uint8
	// TODO: ItemPropertiesStruct
	SpellBuffs   []SpellBuff
	ContainerInv []int16
	CursorBagInv []int16
	// TODO: ItemPropertiesStruct (Container)
	// TODO: ItemPropertiesStruct (Cursor Container)
	SpellBook                                              []int16
	Unknown2374                                            []byte
	Unknown2886                                            []byte
	MemSpells                                              []int16
	AvaliableSlots                                         uint16
	Y, X, Z, Heading                                       float32
	Position                                               uint32
	Platinum, Gold, Silver, Copper                         int32
	PlatinumBank, GoldBank, SilverBank, CopperBank         int32
	PlatinumCursor, GoldCursor, SilverCursor, CopperCursor int32
	Currency                                               []int32
	Skills                                                 []int16
	InnateSkills                                           []int16
	AirSupply                                              uint8
	Texture                                                uint8
	Height, Width, Length, ViewHeight                      float32
	Boat                                                   string
	Autosplit                                              uint8
	Expansions                                             uint8
	Hunger, Thirst                                         int32
	ZoneID                                                 uint32
	BindPoints                                             []BindPoint // TODO: BindPointStruct
	// TODO: Bank ItemStructs
	// TODO: Bank Bag ItemStructs
	LoginTime                                                                                                                                                           uint32
	BankInv                                                                                                                                                             []int16
	BankInvCont                                                                                                                                                         []int16
	Deity                                                                                                                                                               uint16
	GuildID                                                                                                                                                             uint16
	Birthday                                                                                                                                                            uint32
	LastLogin                                                                                                                                                           uint32
	TimePlayedMin                                                                                                                                                       uint32
	Fatigue                                                                                                                                                             int8
	PVP                                                                                                                                                                 uint8
	Level2                                                                                                                                                              uint8
	ANON                                                                                                                                                                uint8
	GM                                                                                                                                                                  uint8
	GuildRank                                                                                                                                                           uint8
	Intoxication                                                                                                                                                        uint8
	EQBackground                                                                                                                                                        uint8
	SpellSlotRefresh                                                                                                                                                    []uint32
	AbilitySlotRefresh                                                                                                                                                  uint32
	GroupMembers                                                                                                                                                        []string
	GroupDat                                                                                                                                                            uint32
	EXPAA                                                                                                                                                               uint32
	Title                                                                                                                                                               uint8
	PerAA                                                                                                                                                               uint8
	Haircolor, Beardcolor, Eye1color, Eye2color, Hairstyle, Beard, Luclinface                                                                                           uint8
	ItemMaterial                                                                                                                                                        []byte
	AAArray                                                                                                                                                             []AA_Array
	ATR_DivineRez, ATR_FreeHot, ATR_TargetDA, ATR_SPTWood, ATR_DireCharm, ATR_StrongRoot, ATR_Masco, ATR_MANABURN, ATR_GatherMana, ATR_PetLOH, ATR_Exodus, ATR_MassFear uint32
	AirRemaining                                                                                                                                                        uint16
	AAPts                                                                                                                                                               uint16
	MGBTimer                                                                                                                                                            uint32
	MBitFlags                                                                                                                                                           []int8
	PopSpellTimer                                                                                                                                                       uint32
	LastSheild, LastModulated                                                                                                                                           uint32
	Unknown004                                                                                                                                                          []byte
	// contains filtered or unexported fields
}

func (*PlayerProfile) EQType

func (p *PlayerProfile) EQType() EQType

func (*PlayerProfile) Proto

func (p *PlayerProfile) Proto() *eqstruct.PlayerProfile

func (*PlayerProfile) ProtoMess

func (p *PlayerProfile) ProtoMess() proto.Message

func (*PlayerProfile) Unmarshal

func (p *PlayerProfile) Unmarshal(b []byte) (int, error)

type RaidAddMember

type RaidAddMember struct {
	RaidGeneral     RaidGeneral
	Class           uint8
	Level           uint8
	GroupLeaderFlag uint8
	// contains filtered or unexported fields
}

func (*RaidAddMember) EQType

func (p *RaidAddMember) EQType() EQType

func (*RaidAddMember) Proto

func (p *RaidAddMember) Proto() *eqstruct.RaidAddMember

func (*RaidAddMember) ProtoMess

func (p *RaidAddMember) ProtoMess() proto.Message

func (*RaidAddMember) Unmarshal

func (p *RaidAddMember) Unmarshal(b []byte) (int, error)

type RaidCreate

type RaidCreate struct {
	Action     uint32
	LeaderName string // MAX64
	LeaderID   uint32
	// contains filtered or unexported fields
}

func (*RaidCreate) EQType

func (p *RaidCreate) EQType() EQType

func (*RaidCreate) Proto

func (p *RaidCreate) Proto() *eqstruct.RaidCreate

func (*RaidCreate) ProtoMess

func (p *RaidCreate) ProtoMess() proto.Message

func (*RaidCreate) Unmarshal

func (p *RaidCreate) Unmarshal(b []byte) (int, error)

type RaidGeneral

type RaidGeneral struct {
	Action     uint32
	PlayerName string // MAX64
	LeaderName string // MAX64
	Parameter  uint32
	// contains filtered or unexported fields
}

func (*RaidGeneral) EQType

func (p *RaidGeneral) EQType() EQType

func (*RaidGeneral) Proto

func (p *RaidGeneral) Proto() *eqstruct.RaidGeneral

func (*RaidGeneral) ProtoMess

func (p *RaidGeneral) ProtoMess() proto.Message

func (*RaidGeneral) Unmarshal

func (p *RaidGeneral) Unmarshal(b []byte) (int, error)

type RandomReply

type RandomReply struct {
	Low      uint32
	High     uint32
	Result   uint32
	CharName string
	// contains filtered or unexported fields
}

func (*RandomReply) EQType

func (p *RandomReply) EQType() EQType

func (*RandomReply) Proto

func (p *RandomReply) Proto() *eqstruct.RandomReply

func (*RandomReply) ProtoMess

func (p *RandomReply) ProtoMess() proto.Message

func (*RandomReply) SetPointer

func (p *RandomReply) SetPointer(i int)

func (*RandomReply) Unmarshal

func (p *RandomReply) Unmarshal(b []byte) (int, error)

type RandomReq

type RandomReq struct {
	Low  uint32
	High uint32
	// contains filtered or unexported fields
}

func (*RandomReq) EQType

func (p *RandomReq) EQType() EQType

func (*RandomReq) Proto

func (p *RandomReq) Proto() *eqstruct.RandomReq

func (*RandomReq) ProtoMess

func (p *RandomReq) ProtoMess() proto.Message

func (*RandomReq) SetPointer

func (p *RandomReq) SetPointer(i int)

func (*RandomReq) Unmarshal

func (p *RandomReq) Unmarshal(b []byte) (int, error)

type ServerMOTD

type ServerMOTD struct {
	Name    string // 000
	Message string
	// contains filtered or unexported fields
}

func (*ServerMOTD) EQType

func (p *ServerMOTD) EQType() EQType

func (*ServerMOTD) Proto

func (p *ServerMOTD) Proto() *eqstruct.ServerMOTD

func (*ServerMOTD) ProtoMess

func (p *ServerMOTD) ProtoMess() proto.Message

func (*ServerMOTD) Unmarshal

func (p *ServerMOTD) Unmarshal(b []byte) (int, error)

type SpawnAppearance

type SpawnAppearance struct {
	SpawnID   uint16
	Type      uint16
	Parameter uint32
	// contains filtered or unexported fields
}

func (*SpawnAppearance) EQType

func (p *SpawnAppearance) EQType() EQType

func (*SpawnAppearance) Proto

func (*SpawnAppearance) ProtoMess

func (p *SpawnAppearance) ProtoMess() proto.Message

func (*SpawnAppearance) Unmarshal

func (p *SpawnAppearance) Unmarshal(b []byte) (int, error)

type SpawnDoor

type SpawnDoor struct {
	Name        string // MAX16
	Y           float32
	X           float32
	Z           float32
	Heading     float32
	Incline     uint16
	Size        uint16
	Unknown_036 uint16
	DoorID      uint8
	OpenType    uint8
	OpenFlag    uint8
	Inverted    uint8
	Parameter   uint16
	// contains filtered or unexported fields
}

func (*SpawnDoor) EQType

func (p *SpawnDoor) EQType() EQType

func (*SpawnDoor) Proto

func (p *SpawnDoor) Proto() *eqstruct.SpawnDoor

func (*SpawnDoor) ProtoMess

func (p *SpawnDoor) ProtoMess() proto.Message

func (*SpawnDoor) Unmarshal

func (p *SpawnDoor) Unmarshal(b []byte) (int, error)

type SpawnDoors

type SpawnDoors struct {
	Doors []*SpawnDoor // 004
	// contains filtered or unexported fields
}

func (*SpawnDoors) EQType

func (p *SpawnDoors) EQType() EQType

func (*SpawnDoors) Proto

func (p *SpawnDoors) Proto() *eqstruct.SpawnDoors

func (*SpawnDoors) ProtoMess

func (p *SpawnDoors) ProtoMess() proto.Message

func (*SpawnDoors) Unmarshal

func (p *SpawnDoors) Unmarshal(b []byte) (int, error)

type SpawnPositionUpdate

type SpawnPositionUpdate struct {
	SpawnID      uint16 // 000
	AnimType     int8   // 002
	Heading      uint8  // 003
	HeadingDelta int8   // 004
	Y            int16  // 005
	X            int16  // 007
	Z            int16  // 009
	XYZDelta     uint32

	// derived values
	XDelta float32
	YDelta float32
	ZDelta float32
	// contains filtered or unexported fields
}

func (*SpawnPositionUpdate) DeltaConvert

func (p *SpawnPositionUpdate) DeltaConvert()

func (*SpawnPositionUpdate) EQType

func (p *SpawnPositionUpdate) EQType() EQType

func (*SpawnPositionUpdate) Proto

func (p *SpawnPositionUpdate) Proto() *pb.SpawnPosition

func (*SpawnPositionUpdate) ProtoMess

func (p *SpawnPositionUpdate) ProtoMess() proto.Message

func (*SpawnPositionUpdate) Unmarshal

func (p *SpawnPositionUpdate) Unmarshal(b []byte) (int, error)

type SpawnPositionUpdates

type SpawnPositionUpdates struct {
	Count   uint32                 // 000
	Updates []*SpawnPositionUpdate // 004
	// contains filtered or unexported fields
}

func (*SpawnPositionUpdates) EQType

func (p *SpawnPositionUpdates) EQType() EQType

func (*SpawnPositionUpdates) Proto

func (*SpawnPositionUpdates) ProtoMess

func (p *SpawnPositionUpdates) ProtoMess() proto.Message

func (*SpawnPositionUpdates) Unmarshal

func (p *SpawnPositionUpdates) Unmarshal(b []byte) (int, error)

type SpellBuff

type SpellBuff struct {
	BuffType     uint8
	Level        uint8
	BardModifier uint8
	Activated    uint8
	SpellID      uint16
	Duration     uint16
	Counters     uint16
}

type StaminaUpdate

type StaminaUpdate struct {
	Food    int16
	Water   int16
	Fatigue int8
	// contains filtered or unexported fields
}

func (*StaminaUpdate) EQType

func (p *StaminaUpdate) EQType() EQType

func (*StaminaUpdate) Proto

func (p *StaminaUpdate) Proto() *pb.StaminaUpdate

func (*StaminaUpdate) ProtoMess

func (p *StaminaUpdate) ProtoMess() proto.Message

func (*StaminaUpdate) Unmarshal

func (p *StaminaUpdate) Unmarshal(b []byte) (int, error)

type Target

type Target struct {
	TargetID uint16 // 000
	// contains filtered or unexported fields
}

func (*Target) EQType

func (p *Target) EQType() EQType

func (*Target) Proto

func (p *Target) Proto() *eqstruct.Target

func (*Target) ProtoMess

func (p *Target) ProtoMess() proto.Message

func (*Target) Unmarshal

func (p *Target) Unmarshal(b []byte) (int, error)

type Time

type Time struct {
	Hour   uint8
	Minute uint8
	Day    uint8
	Month  uint8
	Year   uint8
	// contains filtered or unexported fields
}

func (*Time) EQType

func (p *Time) EQType() EQType

func (*Time) Proto

func (p *Time) Proto() *eqstruct.Time

func (*Time) ProtoMess

func (p *Time) ProtoMess() proto.Message

func (*Time) Unmarshal

func (p *Time) Unmarshal(b []byte) (int, error)

type TintStruct

type TintStruct struct {
	Blue, Green, Red uint8
	Use              uint8
	// contains filtered or unexported fields
}

func (*TintStruct) EQType

func (p *TintStruct) EQType() EQType

func (*TintStruct) Proto

func (p *TintStruct) Proto() *eqstruct.TintStruct

func (*TintStruct) ProtoMess

func (p *TintStruct) ProtoMess() proto.Message

func (*TintStruct) Unmarshal

func (p *TintStruct) Unmarshal(b []byte) (int, error)

type WearChange

type WearChange struct {
	SpawnID    uint16
	WearSlotID uint8
	Material   uint16
	Color      *TintStruct
	// contains filtered or unexported fields
}

func (*WearChange) EQType

func (p *WearChange) EQType() EQType

func (*WearChange) Proto

func (p *WearChange) Proto() *eqstruct.WearChange

func (*WearChange) ProtoMess

func (p *WearChange) ProtoMess() proto.Message

func (*WearChange) Unmarshal

func (p *WearChange) Unmarshal(b []byte) (int, error)

type Weather

type Weather struct {
	Type      uint32
	Intensity uint32
	// contains filtered or unexported fields
}

func (*Weather) EQType

func (p *Weather) EQType() EQType

func (*Weather) Proto

func (p *Weather) Proto() *eqstruct.Weather

func (*Weather) ProtoMess

func (p *Weather) ProtoMess() proto.Message

func (*Weather) Unmarshal

func (p *Weather) Unmarshal(b []byte) (int, error)

type WorldApprove

type WorldApprove struct {
	Response uint8
	Name     string // MAX64
	// contains filtered or unexported fields
}

func (*WorldApprove) EQType

func (p *WorldApprove) EQType() EQType

func (*WorldApprove) Proto

func (p *WorldApprove) Proto() *eqstruct.WorldApprove

func (*WorldApprove) ProtoMess

func (p *WorldApprove) ProtoMess() proto.Message

func (*WorldApprove) Unmarshal

func (p *WorldApprove) Unmarshal(b []byte) (int, error)

type ZoneChange

type ZoneChange struct {
	CharName   string // MAX64
	ZoneID     uint16
	ZoneReason uint16
	Success    int8
	Error      [3]uint8
	// contains filtered or unexported fields
}

func (*ZoneChange) EQType

func (p *ZoneChange) EQType() EQType

func (*ZoneChange) Proto

func (p *ZoneChange) Proto() *eqstruct.ZoneChange

func (*ZoneChange) ProtoMess

func (p *ZoneChange) ProtoMess() proto.Message

func (*ZoneChange) Unmarshal

func (p *ZoneChange) Unmarshal(b []byte) (int, error)

type ZoneChangeReq

type ZoneChangeReq struct {
	ZoneID  uint32
	Y       float32
	X       float32
	Z       float32
	Heading float32
	Type    uint32
	// contains filtered or unexported fields
}

func (*ZoneChangeReq) EQType

func (p *ZoneChangeReq) EQType() EQType

func (*ZoneChangeReq) Proto

func (p *ZoneChangeReq) Proto() *eqstruct.ZoneChangeReq

func (*ZoneChangeReq) ProtoMess

func (p *ZoneChangeReq) ProtoMess() proto.Message

func (*ZoneChangeReq) Unmarshal

func (p *ZoneChangeReq) Unmarshal(b []byte) (int, error)

type ZoneEntryClient

type ZoneEntryClient struct {
	Unknown000 uint32
	CharName   string
	// contains filtered or unexported fields
}

func (*ZoneEntryClient) EQType

func (p *ZoneEntryClient) EQType() EQType

func (*ZoneEntryClient) Proto

func (*ZoneEntryClient) ProtoMess

func (p *ZoneEntryClient) ProtoMess() proto.Message

func (*ZoneEntryClient) Unmarshal

func (p *ZoneEntryClient) Unmarshal(b []byte) (int, error)

type ZoneEntryServer

type ZoneEntryServer struct {
	Checksum  []byte  // 000 Len4
	Type      uint8   // 004
	Name      string  // 005 MAX64
	Unknown70 []byte  // 70
	ZoneId    uint32  // 72
	PosY      float32 // 0076
	PosX      float32 // 0080
	PosZ      float32 // 0084
	Heading   float32 // 0088
	MyChar    int32   // 140
	HPMax     uint32  // 156
	HPCur     uint32  // 160
	GuildId   uint16  // 164
	Class     uint8   // 173
	Race      uint16  // 174
	Gender    uint8   // 176
	Level     uint8   // 177
	Invis     uint8   // 178
	Sneaking  uint8   // 179
	PVP       uint8   // 180
	// contains filtered or unexported fields
}

func (*ZoneEntryServer) EQType

func (p *ZoneEntryServer) EQType() EQType

func (*ZoneEntryServer) Proto

func (*ZoneEntryServer) ProtoMess

func (p *ZoneEntryServer) ProtoMess() proto.Message

func (*ZoneEntryServer) Unmarshal

func (p *ZoneEntryServer) Unmarshal(b []byte) (int, error)

type ZonePoint

type ZonePoint struct {
	Iterator uint32
	Y        float32
	X        float32
	Z        float32
	Heading  float32
	ZoneID   uint16
	// contains filtered or unexported fields
}

func (*ZonePoint) EQType

func (p *ZonePoint) EQType() EQType

func (*ZonePoint) Proto

func (p *ZonePoint) Proto() *eqstruct.ZonePoint

func (*ZonePoint) ProtoMess

func (p *ZonePoint) ProtoMess() proto.Message

func (*ZonePoint) Unmarshal

func (p *ZonePoint) Unmarshal(b []byte) (int, error)

type ZonePoints

type ZonePoints struct {
	Count  uint32
	Points []*ZonePoint
	// contains filtered or unexported fields
}

func (*ZonePoints) EQType

func (p *ZonePoints) EQType() EQType

func (*ZonePoints) Proto

func (p *ZonePoints) Proto() *eqstruct.ZonePoints

func (*ZonePoints) ProtoMess

func (p *ZonePoints) ProtoMess() proto.Message

func (*ZonePoints) Unmarshal

func (p *ZonePoints) Unmarshal(b []byte) (int, error)

type ZoneServerInfo

type ZoneServerInfo struct {
	IP   string // 000
	Port uint16 // 128
	// contains filtered or unexported fields
}

func (*ZoneServerInfo) EQType

func (p *ZoneServerInfo) EQType() EQType

func (*ZoneServerInfo) Proto

func (*ZoneServerInfo) ProtoMess

func (p *ZoneServerInfo) ProtoMess() proto.Message

func (*ZoneServerInfo) Unmarshal

func (p *ZoneServerInfo) Unmarshal(b []byte) (int, error)

type ZoneSpawn

type ZoneSpawn struct {
	Unused01     uint32 // 000
	Accel        int8   // 004
	Heading      uint8  // 005
	HeadingDelta int8   // 006
	Y            int16
	X            int16
	Z            int16
	XYZDelta     uint32
	YDelta       float32 // velocities
	ZDelta       float32
	XDelta       float32
	Unused02     int8
	PetOwnerID   uint16
	Animation    uint8
	Haircolor    uint8
	Beardcolor   uint8
	Eyecolor1    uint8
	Eyecolor2    uint8
	Hairstyle    uint8
	Beard        uint8
	Title        uint8
	Size         float32
	Walkspeed    float32
	Runspeed     float32
	EquipColors  []byte // skip for now
	SpawnID      uint16
	BodyType     int16
	HPCur        int16
	GuildID      int16
	Race         uint16
	NPC          uint8
	ClassB       uint8
	Gender       uint8
	Level        uint8
	Invis        uint8
	Sneaking     uint8
	PVP          uint8
	AnimType     uint8
	Light        uint8
	ANON         int8
	AFK          int8
	SummonedPC   int8
	LD           int8
	GM           int8
	FlyMode      int8
	BodyTexture  int8
	Helm         int8
	Face         uint8
	Equipment    []uint16
	GuildRank    int16
	Deity        int16
	TemporaryPet int8
	Name         string
	Surname      string
	Void2        uint8
	// contains filtered or unexported fields
}

func (*ZoneSpawn) DeltaConvert

func (p *ZoneSpawn) DeltaConvert()

func (*ZoneSpawn) EQType

func (p *ZoneSpawn) EQType() EQType

func (*ZoneSpawn) Proto

func (p *ZoneSpawn) Proto() *eqstruct.Spawn

func (*ZoneSpawn) ProtoMess

func (p *ZoneSpawn) ProtoMess() proto.Message

func (*ZoneSpawn) Unmarshal

func (p *ZoneSpawn) Unmarshal(b []byte) (int, error)

type ZoneSpawns

type ZoneSpawns struct {
	Spawns []*ZoneSpawn // 004
	// contains filtered or unexported fields
}

func (*ZoneSpawns) EQType

func (p *ZoneSpawns) EQType() EQType

func (*ZoneSpawns) Proto

func (p *ZoneSpawns) Proto() *eqstruct.Spawns

func (*ZoneSpawns) ProtoMess

func (p *ZoneSpawns) ProtoMess() proto.Message

func (*ZoneSpawns) Unmarshal

func (p *ZoneSpawns) Unmarshal(b []byte) (int, error)

Jump to

Keyboard shortcuts

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