Documentation ¶
Index ¶
- Constants
- Variables
- type AccountLoginRequestPacket
- type BOut
- type BasePacket
- type BytePacket
- type ClientMegaCliloc
- type ClilocEntry
- type ClilocId
- type GenericCommandPacket
- type HealthPacket
- type MegaClilocPacket
- type MovePacket
- type MoveRequestPacket
- type PacketInfo
- type Packeter
- type PingPacket
- type PostLoginPacket
- type RequestWarModePacket
- type RevisionPacket
- type SendSpeechPacket
- type ServerListEntry
- type ServerListPacket
- type ServerMegaCliloc
- type ServerRedirectPacket
- type ServerSelectPacket
- type UnknownPacket
- type UpdatePlayerPacket
Constants ¶
View Source
const ( DirN = iota DirNE DirE DirSE DirS DirSW DirW DirNW )
Variables ¶
View Source
var PacketMap = map[int]PacketInfo{}/* 256 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type AccountLoginRequestPacket ¶
type AccountLoginRequestPacket struct { BasePacket User string Pass string NextLoginKey byte }
func (*AccountLoginRequestPacket) Bytes ¶
func (p *AccountLoginRequestPacket) Bytes() []byte
func (*AccountLoginRequestPacket) Read ¶
func (p *AccountLoginRequestPacket) Read(in chan byte)
type BOut ¶
type BOut struct {
// contains filtered or unexported fields
}
func NewBOut ¶
func NewBOut(info PacketInfo) *BOut
type BasePacket ¶
type BasePacket struct { Info PacketInfo ClientToServer bool }
func (*BasePacket) Base ¶
func (b *BasePacket) Base() *BasePacket
func (*BasePacket) Writer ¶
func (b *BasePacket) Writer() *BOut
type BytePacket ¶
type BytePacket struct { BasePacket Len int Data []byte }
func (*BytePacket) Bytes ¶
func (p *BytePacket) Bytes() []byte
func (*BytePacket) Read ¶
func (p *BytePacket) Read(in chan byte)
type ClientMegaCliloc ¶
type ClientMegaCliloc struct {
Serials []uint
}
type ClilocEntry ¶
type ClilocId ¶
type ClilocId uint
const ( NamedItem ClilocId = 0x1011ab ItemStack ClilocId = 0x1005b7 // {COUNT} #{CLILOCID} e.g.: Bandage:1023617 Arrow:1023903 Name ClilocId = 0x1036d5 Insured ClilocId = 0x103332 SkillBonus ClilocId = 0x102e63 // {CLILOCID} {COUNT} Weight1 ClilocId = 0x105e94 // rune Weight2 ClilocId = 0x105e95 // usually RuneLabel ClilocId = 0x10395b Contents ClilocId = 0x105c71 // bags Exceptional ClilocId = 0x102f1c ElementalSlayer ClilocId = 0x102e70 DamageIncrease ClilocId = 0x102e31 FasterCastRecovery ClilocId = 0x102e3c FasterCasting ClilocId = 0x102e3d HitChanceIncrease ClilocId = 0x102e3f DexterityBonus ClilocId = 0x102e39 HitFireArea ClilocId = 0x102e43 HitFireball ClilocId = 0x102e44 HitLifeLeech ClilocId = 0x102e46 HitManaLeech ClilocId = 0x102e4b HitPhysicalArea ClilocId = 0x102e4c SwingSpeedIncrease ClilocId = 0x102e86 HitPointIncrease ClilocId = 0x102e4f LowerManaCost ClilocId = 0x102e51 LowerReagentCost ClilocId = 0x102e52 Luck ClilocId = 0x102e54 FireResist ClilocId = 0x102e5f ManaIncrease ClilocId = 0x102e57 ManaRegeneration ClilocId = 0x102e58 NightSight ClilocId = 0x102e59 StaminaRegeneration ClilocId = 0x102e5b HitPointRegeneration ClilocId = 0x102e5c SpellChanneling ClilocId = 0x102e82 FireDamage ClilocId = 0x102e35 EnergyDamage ClilocId = 0x102e37 WeaponDamage ClilocId = 0x103130 WeaponSpeed ClilocId = 0x10312f StrengthRequirement ClilocId = 0x103132 PhysicalDamage ClilocId = 0x102e33 OneHandedWeapon ClilocId = 0x1033c0 TwoHandedWeapon ClilocId = 0x103133 SkillRequiredSwordmanship ClilocId = 0x103134 Durability ClilocId = 0x102f1f WeaponLevel ClilocId = 0xfe472 Resistances ClilocId = 0x102f33 )
type GenericCommandPacket ¶
type GenericCommandPacket struct { BasePacket SubCmd int Data []byte }
func (*GenericCommandPacket) Bytes ¶
func (p *GenericCommandPacket) Bytes() []byte
func (*GenericCommandPacket) Read ¶
func (p *GenericCommandPacket) Read(in chan byte)
type HealthPacket ¶
type HealthPacket struct { BasePacket Target uint Maximum int Current int }
func (*HealthPacket) Bytes ¶
func (p *HealthPacket) Bytes() []byte
func (*HealthPacket) Read ¶
func (p *HealthPacket) Read(in chan byte)
type MegaClilocPacket ¶
type MegaClilocPacket struct { BasePacket Server *ServerMegaCliloc Client *ClientMegaCliloc }
func (*MegaClilocPacket) Bytes ¶
func (p *MegaClilocPacket) Bytes() []byte
func (*MegaClilocPacket) Read ¶
func (p *MegaClilocPacket) Read(in chan byte)
type MovePacket ¶
type MovePacket struct { BasePacket SeqKey byte Notoriety byte }
func (*MovePacket) Bytes ¶
func (p *MovePacket) Bytes() []byte
func (*MovePacket) Read ¶
func (p *MovePacket) Read(in chan byte)
type MoveRequestPacket ¶
type MoveRequestPacket struct { BasePacket Direction byte // 0-7: N,NE,E,SE,S,SW,W,NW Sequence byte FastwalkPrevention uint }
func (*MoveRequestPacket) Bytes ¶
func (p *MoveRequestPacket) Bytes() []byte
func (*MoveRequestPacket) Read ¶
func (p *MoveRequestPacket) Read(in chan byte)
type PacketInfo ¶
type Packeter ¶
type Packeter interface { Base() *BasePacket Bytes() []byte Read(chan byte) }
type PingPacket ¶
type PingPacket struct { BasePacket Value byte }
func (*PingPacket) Bytes ¶
func (p *PingPacket) Bytes() []byte
func (*PingPacket) Read ¶
func (p *PingPacket) Read(in chan byte)
type PostLoginPacket ¶
type PostLoginPacket struct { BasePacket Key uint User string Pass string }
func (*PostLoginPacket) Bytes ¶
func (p *PostLoginPacket) Bytes() []byte
func (*PostLoginPacket) Read ¶
func (p *PostLoginPacket) Read(in chan byte)
type RequestWarModePacket ¶
type RequestWarModePacket struct { BasePacket Flag byte UNK1 []byte }
func (*RequestWarModePacket) Bytes ¶
func (p *RequestWarModePacket) Bytes() []byte
func (*RequestWarModePacket) Read ¶
func (p *RequestWarModePacket) Read(in chan byte)
type RevisionPacket ¶
type RevisionPacket struct { BasePacket Serial uint Revision uint }
func (*RevisionPacket) Bytes ¶
func (p *RevisionPacket) Bytes() []byte
func (*RevisionPacket) Read ¶
func (p *RevisionPacket) Read(in chan byte)
type SendSpeechPacket ¶
type SendSpeechPacket struct { BasePacket Target uint Model int TextType byte TextColor int Font int Name string Text string }
func (*SendSpeechPacket) Bytes ¶
func (p *SendSpeechPacket) Bytes() []byte
func (*SendSpeechPacket) Read ¶
func (p *SendSpeechPacket) Read(in chan byte)
type ServerListEntry ¶
type ServerListPacket ¶
type ServerListPacket struct { BasePacket Flags int Servers []ServerListEntry }
func (*ServerListPacket) Bytes ¶
func (p *ServerListPacket) Bytes() []byte
func (*ServerListPacket) Read ¶
func (p *ServerListPacket) Read(in chan byte)
type ServerMegaCliloc ¶
type ServerMegaCliloc struct { UNK1 int Serial1 uint UNK2 int Serial2 uint Clilocs []ClilocEntry }
type ServerRedirectPacket ¶
type ServerRedirectPacket struct { BasePacket Address [4]byte Port int Key uint }
func (*ServerRedirectPacket) Bytes ¶
func (p *ServerRedirectPacket) Bytes() []byte
func (*ServerRedirectPacket) Read ¶
func (p *ServerRedirectPacket) Read(in chan byte)
type ServerSelectPacket ¶
type ServerSelectPacket struct { BasePacket Index int }
func (*ServerSelectPacket) Bytes ¶
func (p *ServerSelectPacket) Bytes() []byte
func (*ServerSelectPacket) Read ¶
func (p *ServerSelectPacket) Read(in chan byte)
type UnknownPacket ¶
type UnknownPacket struct { BasePacket Len int DataLen int Data []byte }
func (*UnknownPacket) Bytes ¶
func (p *UnknownPacket) Bytes() []byte
func (*UnknownPacket) Read ¶
func (p *UnknownPacket) Read(in chan byte)
type UpdatePlayerPacket ¶
type UpdatePlayerPacket struct { BasePacket Target uint Model int X int Y int Z int Direction byte Color int Status byte Highlight byte }
func (*UpdatePlayerPacket) Bytes ¶
func (p *UpdatePlayerPacket) Bytes() []byte
func (*UpdatePlayerPacket) Read ¶
func (p *UpdatePlayerPacket) Read(in chan byte)
Source Files ¶
- accountloginrequest_packet.go
- bout.go
- byte_packet.go
- genericcommand_packet.go
- health_packet.go
- megacliloc_packet.go
- move_packet.go
- moverequest_packet.go
- packets.go
- ping_packet.go
- postlogin_packet.go
- requestwarmode_packet.go
- revision_packet.go
- sendspeech_package.go
- serverlist_packet.go
- serverredirect_packet.go
- serverselect_packet.go
- unknown_packet.go
- updateplayer_packet.go
Click to show internal directories.
Click to hide internal directories.