unfinished draft

This commit is contained in:
wish
2024-08-21 21:04:52 +10:00
parent 7d760bd3b4
commit c8d3fc3ead
17 changed files with 484 additions and 820 deletions

View File

@@ -10,20 +10,19 @@ import (
type EnumerateGuildType uint8
const (
ENUMERATE_GUILD_UNKNOWN = iota
ENUMERATE_GUILD_TYPE_GUILD_NAME
ENUMERATE_GUILD_TYPE_LEADER_NAME
ENUMERATE_GUILD_TYPE_LEADER_ID
ENUMERATE_GUILD_TYPE_ORDER_MEMBERS
ENUMERATE_GUILD_TYPE_ORDER_REGISTRATION
ENUMERATE_GUILD_TYPE_ORDER_RANK
ENUMERATE_GUILD_TYPE_MOTTO
ENUMERATE_GUILD_TYPE_RECRUITING
ENUMERATE_ALLIANCE_TYPE_ALLIANCE_NAME
ENUMERATE_ALLIANCE_TYPE_LEADER_NAME
ENUMERATE_ALLIANCE_TYPE_LEADER_ID
ENUMERATE_ALLIANCE_TYPE_ORDER_MEMBERS
ENUMERATE_ALLIANCE_TYPE_ORDER_REGISTRATION
EnumerateGuildTypeGuildName = iota + 1
EnumerateGuildTypeLeaderName
EnumerateGuildTypeLeaderId
EnumerateGuildTypeOrderMembers
EnumerateGuildTypeOrderRegistration
EnumerateGuildTypeOrderRank
EnumerateGuildTypeMotto
EnumerateGuildTypeRecruiting
EnumerateAllianceTypeAllianceName
EnumerateAllianceTypeLeaderName
EnumerateAllianceTypeLeaderId
EnumerateAllianceTypeOrderMembers
EnumerateAllianceTypeOrderRegistration
)
// MsgMhfEnumerateGuild represents the MSG_MHF_ENUMERATE_GUILD

View File

@@ -12,8 +12,8 @@ import (
type MsgMhfEnumerateInvGuild struct {
AckHandle uint32
Unk uint32
Operation uint8
ActiveHours uint8
ActiveHours1 uint8
ActiveHours2 uint8
DaysActive uint8
PlayStyle uint8
GuildRequest uint8
@@ -28,8 +28,8 @@ func (m *MsgMhfEnumerateInvGuild) Opcode() network.PacketID {
func (m *MsgMhfEnumerateInvGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.Unk = bf.ReadUint32()
m.Operation = bf.ReadUint8()
m.ActiveHours = bf.ReadUint8()
m.ActiveHours1 = bf.ReadUint8()
m.ActiveHours2 = bf.ReadUint8()
m.DaysActive = bf.ReadUint8()
m.PlayStyle = bf.ReadUint8()
m.GuildRequest = bf.ReadUint8()

View File

@@ -11,10 +11,9 @@ import (
type OperateGuildMemberAction uint8
const (
_ = iota
OPERATE_GUILD_MEMBER_ACTION_ACCEPT
OPERATE_GUILD_MEMBER_ACTION_REJECT
OPERATE_GUILD_MEMBER_ACTION_KICK
OperateGuildMemberAccept = iota + 1
OperateGuildMemberReject
OperateGuildMemberKick
)
// MsgMhfOperateGuildMember represents the MSG_MHF_OPERATE_GUILD_MEMBER

View File

@@ -11,9 +11,9 @@ import (
type OperateJointAction uint8
const (
OPERATE_JOINT_DISBAND = 0x01
OPERATE_JOINT_LEAVE = 0x03
OPERATE_JOINT_KICK = 0x09
OperateJointDisband = 1
OperateJointLeave = 3
OperateJointKick = 9
)
// MsgMhfOperateJoint represents the MSG_MHF_OPERATE_JOINT

View File

@@ -8,10 +8,17 @@ import (
"erupe-ce/network/clientctx"
)
type OperateInvGuildAction uint8
const (
OperateInvGuildSend = iota + 1
OperateInvGuildCancel
)
// MsgMhfOperationInvGuild represents the MSG_MHF_OPERATION_INV_GUILD
type MsgMhfOperationInvGuild struct {
AckHandle uint32
Operation uint8
Action uint8
ActiveHours uint8
DaysActive uint8
PlayStyle uint8
@@ -26,7 +33,7 @@ func (m *MsgMhfOperationInvGuild) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfOperationInvGuild) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.Operation = bf.ReadUint8()
m.Action = bf.ReadUint8()
m.ActiveHours = bf.ReadUint8()
m.DaysActive = bf.ReadUint8()
m.PlayStyle = bf.ReadUint8()