Files
Erupe/network/mhfpacket/msg_mhf_operate_guild_member.go
Houmgaor 2bd5f98f32 docs: add doc.go files and godoc comments to all packages
Add package-level documentation (doc.go) to all 22 first-party
packages and godoc comments to ~150 previously undocumented
exported symbols across common/, network/, and server/.
2026-02-18 21:39:13 +01:00

49 lines
1.2 KiB
Go

package mhfpacket
import (
"errors"
"erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
)
// OperateGuildMemberAction identifies the guild member management action.
type OperateGuildMemberAction uint8
const (
_ = iota
OPERATE_GUILD_MEMBER_ACTION_ACCEPT
OPERATE_GUILD_MEMBER_ACTION_REJECT
OPERATE_GUILD_MEMBER_ACTION_KICK
)
// MsgMhfOperateGuildMember represents the MSG_MHF_OPERATE_GUILD_MEMBER
type MsgMhfOperateGuildMember struct {
AckHandle uint32
GuildID uint32
CharID uint32
Action uint8
}
// Opcode returns the ID associated with this packet type.
func (m *MsgMhfOperateGuildMember) Opcode() network.PacketID {
return network.MSG_MHF_OPERATE_GUILD_MEMBER
}
// Parse parses the packet from binary
func (m *MsgMhfOperateGuildMember) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.GuildID = bf.ReadUint32()
m.CharID = bf.ReadUint32()
m.Action = bf.ReadUint8()
bf.ReadUint8() // Zeroed
bf.ReadUint16() // Zeroed
return nil
}
// Build builds a binary packet from the current data.
func (m *MsgMhfOperateGuildMember) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
return errors.New("NOT IMPLEMENTED")
}