style: run gofmt across entire codebase

330 non-vendor files had minor formatting inconsistencies
(comment alignment, whitespace). No logic changes.
This commit is contained in:
Houmgaor
2026-02-23 21:28:30 +01:00
parent 385b974adc
commit 48639942f6
330 changed files with 1841 additions and 1809 deletions

View File

@@ -58,9 +58,9 @@ func TestCryptPacketHeaderRoundTrip(t *testing.T) {
PacketNum: 42, PacketNum: 42,
DataSize: 100, DataSize: 100,
PrevPacketCombinedCheck: 0x1234, PrevPacketCombinedCheck: 0x1234,
Check0: 0xAAAA, Check0: 0xAAAA,
Check1: 0xBBBB, Check1: 0xBBBB,
Check2: 0xCCCC, Check2: 0xCCCC,
} }
encoded, err := original.Encode() encoded, err := original.Encode()

View File

@@ -12,9 +12,9 @@ import (
// ServerEntry represents a channel server from the entrance server response. // ServerEntry represents a channel server from the entrance server response.
type ServerEntry struct { type ServerEntry struct {
IP string IP string
Port uint16 Port uint16
Name string Name string
} }
// DoEntrance connects to the entrance server and retrieves the server list. // DoEntrance connects to the entrance server and retrieves the server list.
@@ -93,8 +93,8 @@ func parseServerEntries(data []byte, entryCount uint16) ([]ServerEntry, error) {
_ = bf.ReadUint16() // serverIdx | 16 _ = bf.ReadUint16() // serverIdx | 16
_ = bf.ReadUint16() // 0 _ = bf.ReadUint16() // 0
channelCount := bf.ReadUint16() channelCount := bf.ReadUint16()
_ = bf.ReadUint8() // Type _ = bf.ReadUint8() // Type
_ = bf.ReadUint8() // Season/rotation _ = bf.ReadUint8() // Season/rotation
// G1+ recommended flag // G1+ recommended flag
_ = bf.ReadUint8() _ = bf.ReadUint8()
@@ -118,11 +118,11 @@ func parseServerEntries(data []byte, entryCount uint16) ([]ServerEntry, error) {
// Read channel entries (14 x uint16 = 28 bytes each) // Read channel entries (14 x uint16 = 28 bytes each)
for j := uint16(0); j < channelCount; j++ { for j := uint16(0); j < channelCount; j++ {
port := bf.ReadUint16() port := bf.ReadUint16()
_ = bf.ReadUint16() // channelIdx | 16 _ = bf.ReadUint16() // channelIdx | 16
_ = bf.ReadUint16() // maxPlayers _ = bf.ReadUint16() // maxPlayers
_ = bf.ReadUint16() // currentPlayers _ = bf.ReadUint16() // currentPlayers
_ = bf.ReadBytes(18) // remaining channel fields (9 x uint16: 6 zeros + unk319 + unk254 + unk255) _ = bf.ReadBytes(18) // remaining channel fields (9 x uint16: 6 zeros + unk319 + unk254 + unk255)
_ = bf.ReadUint16() // 12345 _ = bf.ReadUint16() // 12345
serverIP := ip.String() serverIP := ip.String()
// Convert 127.0.0.1 representation // Convert 127.0.0.1 representation

View File

@@ -48,8 +48,8 @@ func BuildEnumerateStagePacket(ackHandle uint32, prefix string) []byte {
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint16(MSG_SYS_ENUMERATE_STAGE) bf.WriteUint16(MSG_SYS_ENUMERATE_STAGE)
bf.WriteUint32(ackHandle) bf.WriteUint32(ackHandle)
bf.WriteUint8(1) // Always 1 bf.WriteUint8(1) // Always 1
bf.WriteUint8(uint8(len(prefix) + 1)) // Length including null terminator bf.WriteUint8(uint8(len(prefix) + 1)) // Length including null terminator
bf.WriteNullTerminatedBytes([]byte(prefix)) bf.WriteNullTerminatedBytes([]byte(prefix))
bf.WriteBytes([]byte{0x00, 0x10}) bf.WriteBytes([]byte{0x00, 0x10})
return bf.Data() return bf.Data()
@@ -68,8 +68,8 @@ func BuildEnterStagePacket(ackHandle uint32, stageID string) []byte {
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint16(MSG_SYS_ENTER_STAGE) bf.WriteUint16(MSG_SYS_ENTER_STAGE)
bf.WriteUint32(ackHandle) bf.WriteUint32(ackHandle)
bf.WriteUint8(0) // IsQuest = false bf.WriteUint8(0) // IsQuest = false
bf.WriteUint8(uint8(len(stageID) + 1)) // Length including null terminator bf.WriteUint8(uint8(len(stageID) + 1)) // Length including null terminator
bf.WriteNullTerminatedBytes([]byte(stageID)) bf.WriteNullTerminatedBytes([]byte(stageID))
bf.WriteBytes([]byte{0x00, 0x10}) bf.WriteBytes([]byte{0x00, 0x10})
return bf.Data() return bf.Data()
@@ -182,13 +182,13 @@ func BuildChatPayload(chatType uint8, message, senderName string) []byte {
sjisMsg := stringsupport.UTF8ToSJIS(message) sjisMsg := stringsupport.UTF8ToSJIS(message)
sjisName := stringsupport.UTF8ToSJIS(senderName) sjisName := stringsupport.UTF8ToSJIS(senderName)
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint8(0) // Unk0 bf.WriteUint8(0) // Unk0
bf.WriteUint8(chatType) // Type bf.WriteUint8(chatType) // Type
bf.WriteUint16(0) // Flags bf.WriteUint16(0) // Flags
bf.WriteUint16(uint16(len(sjisName) + 1)) // SenderName length (+ null term) bf.WriteUint16(uint16(len(sjisName) + 1)) // SenderName length (+ null term)
bf.WriteUint16(uint16(len(sjisMsg) + 1)) // Message length (+ null term) bf.WriteUint16(uint16(len(sjisMsg) + 1)) // Message length (+ null term)
bf.WriteNullTerminatedBytes(sjisMsg) // Message bf.WriteNullTerminatedBytes(sjisMsg) // Message
bf.WriteNullTerminatedBytes(sjisName) // SenderName bf.WriteNullTerminatedBytes(sjisName) // SenderName
return bf.Data() return bf.Data()
} }

View File

@@ -11,11 +11,11 @@ import (
// SignResult holds the parsed response from a successful DSGN sign-in. // SignResult holds the parsed response from a successful DSGN sign-in.
type SignResult struct { type SignResult struct {
TokenID uint32 TokenID uint32
TokenString string // 16 raw bytes as string TokenString string // 16 raw bytes as string
Timestamp uint32 Timestamp uint32
EntranceAddr string EntranceAddr string
CharIDs []uint32 CharIDs []uint32
} }
// DoSign connects to the sign server and performs a DSGN login. // DoSign connects to the sign server and performs a DSGN login.
@@ -62,9 +62,9 @@ func parseSignResponse(data []byte) (*SignResult, error) {
return nil, fmt.Errorf("sign failed with code %d", resultCode) return nil, fmt.Errorf("sign failed with code %d", resultCode)
} }
patchCount := rbf.ReadUint8() // patch server count (usually 2) patchCount := rbf.ReadUint8() // patch server count (usually 2)
_ = rbf.ReadUint8() // entrance server count (usually 1) _ = rbf.ReadUint8() // entrance server count (usually 1)
charCount := rbf.ReadUint8() // character count charCount := rbf.ReadUint8() // character count
result := &SignResult{} result := &SignResult{}
result.TokenID = rbf.ReadUint32() result.TokenID = rbf.ReadUint32()
@@ -87,13 +87,13 @@ func parseSignResponse(data []byte) (*SignResult, error) {
charID := rbf.ReadUint32() charID := rbf.ReadUint32()
result.CharIDs = append(result.CharIDs, charID) result.CharIDs = append(result.CharIDs, charID)
_ = rbf.ReadUint16() // HR _ = rbf.ReadUint16() // HR
_ = rbf.ReadUint16() // WeaponType _ = rbf.ReadUint16() // WeaponType
_ = rbf.ReadUint32() // LastLogin _ = rbf.ReadUint32() // LastLogin
_ = rbf.ReadUint8() // IsFemale _ = rbf.ReadUint8() // IsFemale
_ = rbf.ReadUint8() // IsNewCharacter _ = rbf.ReadUint8() // IsNewCharacter
_ = rbf.ReadUint8() // Old GR _ = rbf.ReadUint8() // Old GR
_ = rbf.ReadUint8() // Use uint16 GR flag _ = rbf.ReadUint8() // Use uint16 GR flag
_ = rbf.ReadBytes(16) // Character name (padded) _ = rbf.ReadBytes(16) // Character name (padded)
_ = rbf.ReadBytes(32) // Unk desc string (padded) _ = rbf.ReadBytes(32) // Unk desc string (padded)
// ZZ mode: additional fields // ZZ mode: additional fields

View File

@@ -57,7 +57,7 @@ func ListenChat(ch *protocol.ChannelConn, cb ChatCallback) {
// Parse MsgBinChat inner payload. // Parse MsgBinChat inner payload.
pbf := byteframe.NewByteFrameFromBytes(payload) pbf := byteframe.NewByteFrameFromBytes(payload)
_ = pbf.ReadUint8() // unk0 _ = pbf.ReadUint8() // unk0
chatType := pbf.ReadUint8() chatType := pbf.ReadUint8()
_ = pbf.ReadUint16() // flags _ = pbf.ReadUint16() // flags
_ = pbf.ReadUint16() // senderNameLen _ = pbf.ReadUint16() // senderNameLen

View File

@@ -468,9 +468,9 @@ func TestByteFrame_SequentialWrites(t *testing.T) {
bf.WriteUint64(0x08090A0B0C0D0E0F) bf.WriteUint64(0x08090A0B0C0D0E0F)
expected := []byte{ expected := []byte{
0x01, // uint8 0x01, // uint8
0x02, 0x03, // uint16 0x02, 0x03, // uint16
0x04, 0x05, 0x06, 0x07, // uint32 0x04, 0x05, 0x06, 0x07, // uint32
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // uint64 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // uint64
} }

View File

@@ -54,10 +54,10 @@ func TestUTF8ToSJIS_RoundTrip(t *testing.T) {
func TestToNGWord(t *testing.T) { func TestToNGWord(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
input string input string
minLen int minLen int
checkFn func(t *testing.T, result []uint16) checkFn func(t *testing.T, result []uint16)
}{ }{
{ {
name: "ascii characters", name: "ascii characters",
@@ -328,11 +328,11 @@ func TestCSVGetIndex(t *testing.T) {
func TestCSVSetIndex(t *testing.T) { func TestCSVSetIndex(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
csv string csv string
index int index int
value int value int
check func(t *testing.T, result string) check func(t *testing.T, result string)
}{ }{
{ {
name: "set first", name: "set first",

View File

@@ -118,7 +118,7 @@ func TestGenerate_Distribution(t *testing.T) {
// With 62 valid characters and 6200 samples, average should be 100 per char // With 62 valid characters and 6200 samples, average should be 100 per char
// We'll accept a range to account for randomness // We'll accept a range to account for randomness
minExpected := 50 // Allow some variance minExpected := 50 // Allow some variance
maxExpected := 150 maxExpected := 150
for c, count := range charCount { for c, count := range charCount {

View File

@@ -14,11 +14,11 @@ func TestModeStringMethod(t *testing.T) {
mode Mode mode Mode
want string want string
}{ }{
{S1, "S1.5"}, // versionStrings[1] {S1, "S1.5"}, // versionStrings[1]
{S15, "S2.0"}, // versionStrings[2] {S15, "S2.0"}, // versionStrings[2]
{G1, "G2"}, // versionStrings[21] {G1, "G2"}, // versionStrings[21]
{Z1, "Z2"}, // versionStrings[39] {Z1, "Z2"}, // versionStrings[39]
{Z2, "ZZ"}, // versionStrings[40] {Z2, "ZZ"}, // versionStrings[40]
} }
for _, tt := range tests { for _, tt := range tests {

View File

@@ -308,7 +308,7 @@ func TestMsgBinTargeted_TargetCountMismatch(t *testing.T) {
// Test that TargetCount and actual array length don't have to match // Test that TargetCount and actual array length don't have to match
// The Build function uses the TargetCount field // The Build function uses the TargetCount field
msg := &MsgBinTargeted{ msg := &MsgBinTargeted{
TargetCount: 2, // Says 2 TargetCount: 2, // Says 2
TargetCharIDs: []uint32{100, 200, 300}, // But has 3 TargetCharIDs: []uint32{100, 200, 300}, // But has 3
RawDataPayload: []byte{0x01}, RawDataPayload: []byte{0x01},
} }

View File

@@ -462,36 +462,36 @@ func TestMHFSaveLoad(t *testing.T) {
func TestMsgSysCreateStageParse(t *testing.T) { func TestMsgSysCreateStageParse(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
data []byte data []byte
wantHandle uint32 wantHandle uint32
wantCreateType uint8 wantCreateType uint8
wantPlayers uint8 wantPlayers uint8
wantStageID string wantStageID string
}{ }{
{ {
name: "simple stage", name: "simple stage",
data: append([]byte{0x00, 0x00, 0x00, 0x01, 0x02, 0x04, 0x05}, append([]byte("test"), 0x00)...), data: append([]byte{0x00, 0x00, 0x00, 0x01, 0x02, 0x04, 0x05}, append([]byte("test"), 0x00)...),
wantHandle: 1, wantHandle: 1,
wantCreateType: 2, wantCreateType: 2,
wantPlayers: 4, wantPlayers: 4,
wantStageID: "test", wantStageID: "test",
}, },
{ {
name: "empty stage ID", name: "empty stage ID",
data: []byte{0x12, 0x34, 0x56, 0x78, 0x01, 0x02, 0x00}, data: []byte{0x12, 0x34, 0x56, 0x78, 0x01, 0x02, 0x00},
wantHandle: 0x12345678, wantHandle: 0x12345678,
wantCreateType: 1, wantCreateType: 1,
wantPlayers: 2, wantPlayers: 2,
wantStageID: "", wantStageID: "",
}, },
{ {
name: "with null terminator", name: "with null terminator",
data: append([]byte{0x00, 0x00, 0x00, 0x0A, 0x01, 0x01, 0x08}, append([]byte("stage01"), 0x00)...), data: append([]byte{0x00, 0x00, 0x00, 0x0A, 0x01, 0x01, 0x08}, append([]byte("stage01"), 0x00)...),
wantHandle: 10, wantHandle: 10,
wantCreateType: 1, wantCreateType: 1,
wantPlayers: 1, wantPlayers: 1,
wantStageID: "stage01", wantStageID: "stage01",
}, },
} }

View File

@@ -196,12 +196,12 @@ func TestBatchParseMultiField(t *testing.T) {
t.Run("MsgMhfRegisterEvent", func(t *testing.T) { t.Run("MsgMhfRegisterEvent", func(t *testing.T) {
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint32(1) // AckHandle bf.WriteUint32(1) // AckHandle
bf.WriteUint16(2) // Unk0 bf.WriteUint16(2) // Unk0
bf.WriteUint16(3) // WorldID bf.WriteUint16(3) // WorldID
bf.WriteUint16(4) // LandID bf.WriteUint16(4) // LandID
bf.WriteBool(true) // Unk1 bf.WriteBool(true) // Unk1
bf.WriteUint8(0) // Zeroed (discarded) bf.WriteUint8(0) // Zeroed (discarded)
_, _ = bf.Seek(0, io.SeekStart) _, _ = bf.Seek(0, io.SeekStart)
pkt := &MsgMhfRegisterEvent{} pkt := &MsgMhfRegisterEvent{}
if err := pkt.Parse(bf, ctx); err != nil { if err := pkt.Parse(bf, ctx); err != nil {
@@ -339,15 +339,15 @@ func TestBatchParseMultiField(t *testing.T) {
t.Run("MsgMhfPresentBox", func(t *testing.T) { t.Run("MsgMhfPresentBox", func(t *testing.T) {
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint32(1) // AckHandle bf.WriteUint32(1) // AckHandle
bf.WriteUint32(2) // Unk0 bf.WriteUint32(2) // Unk0
bf.WriteUint32(3) // Unk1 bf.WriteUint32(3) // Unk1
bf.WriteUint32(2) // Unk2 (controls Unk7 slice length) bf.WriteUint32(2) // Unk2 (controls Unk7 slice length)
bf.WriteUint32(5) // Unk3 bf.WriteUint32(5) // Unk3
bf.WriteUint32(6) // Unk4 bf.WriteUint32(6) // Unk4
bf.WriteUint32(7) // Unk5 bf.WriteUint32(7) // Unk5
bf.WriteUint32(8) // Unk6 bf.WriteUint32(8) // Unk6
bf.WriteUint32(9) // Unk7[0] bf.WriteUint32(9) // Unk7[0]
bf.WriteUint32(10) // Unk7[1] bf.WriteUint32(10) // Unk7[1]
_, _ = bf.Seek(0, io.SeekStart) _, _ = bf.Seek(0, io.SeekStart)
pkt := &MsgMhfPresentBox{} pkt := &MsgMhfPresentBox{}
@@ -1963,9 +1963,9 @@ func TestBatchParseAdditionalMultiField(t *testing.T) {
t.Run("MsgMhfApplyCampaign", func(t *testing.T) { t.Run("MsgMhfApplyCampaign", func(t *testing.T) {
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint32(1) // AckHandle bf.WriteUint32(1) // AckHandle
bf.WriteUint32(1) // Unk0 bf.WriteUint32(1) // Unk0
bf.WriteUint16(2) // Unk1 bf.WriteUint16(2) // Unk1
bf.WriteBytes(make([]byte, 16)) // Unk2 (16 bytes) bf.WriteBytes(make([]byte, 16)) // Unk2 (16 bytes)
_, _ = bf.Seek(0, io.SeekStart) _, _ = bf.Seek(0, io.SeekStart)
pkt := &MsgMhfApplyCampaign{} pkt := &MsgMhfApplyCampaign{}

View File

@@ -361,7 +361,7 @@ func TestBuildParseUpdateObjectBinary(t *testing.T) {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
original := &MsgSysUpdateObjectBinary{ original := &MsgSysUpdateObjectBinary{
ObjectHandleID: tt.unk0, ObjectHandleID: tt.unk0,
Unk1: tt.unk1, Unk1: tt.unk1,
} }
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
@@ -768,7 +768,7 @@ func TestBuildParseEnumerateDistItem(t *testing.T) {
AckHandle: tt.ackHandle, AckHandle: tt.ackHandle,
DistType: tt.distType, DistType: tt.distType,
Unk1: tt.unk1, Unk1: tt.unk1,
MaxCount: tt.unk2, MaxCount: tt.unk2,
} }
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()

View File

@@ -5,8 +5,8 @@ import (
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
) )
// MsgHead represents the MSG_HEAD // MsgHead represents the MSG_HEAD

View File

@@ -5,8 +5,8 @@ import (
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
) )
// MsgMhfAcceptReadReward represents the MSG_MHF_ACCEPT_READ_REWARD // MsgMhfAcceptReadReward represents the MSG_MHF_ACCEPT_READ_REWARD

View File

@@ -3,16 +3,16 @@ package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/common/byteframe"
"erupe-ce/network" "erupe-ce/network"
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/common/byteframe"
) )
// MsgMhfAcquireDistItem represents the MSG_MHF_ACQUIRE_DIST_ITEM // MsgMhfAcquireDistItem represents the MSG_MHF_ACQUIRE_DIST_ITEM
type MsgMhfAcquireDistItem struct { type MsgMhfAcquireDistItem struct {
AckHandle uint32 AckHandle uint32
DistributionType uint8 DistributionType uint8
DistributionID uint32 DistributionID uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.

View File

@@ -1,9 +1,9 @@
package mhfpacket package mhfpacket
import ( import (
"erupe-ce/common/byteframe"
"erupe-ce/network" "erupe-ce/network"
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/common/byteframe"
) )
// MsgMhfAcquireExchangeShop represents the MSG_MHF_ACQUIRE_EXCHANGE_SHOP // MsgMhfAcquireExchangeShop represents the MSG_MHF_ACQUIRE_EXCHANGE_SHOP

View File

@@ -3,15 +3,15 @@ package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/common/byteframe"
"erupe-ce/network" "erupe-ce/network"
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/common/byteframe"
) )
// MsgMhfAcquireFestaIntermediatePrize represents the MSG_MHF_ACQUIRE_FESTA_INTERMEDIATE_PRIZE // MsgMhfAcquireFestaIntermediatePrize represents the MSG_MHF_ACQUIRE_FESTA_INTERMEDIATE_PRIZE
type MsgMhfAcquireFestaIntermediatePrize struct { type MsgMhfAcquireFestaIntermediatePrize struct {
AckHandle uint32 AckHandle uint32
PrizeID uint32 PrizeID uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -22,7 +22,7 @@ func (m *MsgMhfAcquireFestaIntermediatePrize) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAcquireFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfAcquireFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.PrizeID = bf.ReadUint32() m.PrizeID = bf.ReadUint32()
return nil return nil
} }

View File

@@ -1,17 +1,17 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAcquireFestaPersonalPrize represents the MSG_MHF_ACQUIRE_FESTA_PERSONAL_PRIZE // MsgMhfAcquireFestaPersonalPrize represents the MSG_MHF_ACQUIRE_FESTA_PERSONAL_PRIZE
type MsgMhfAcquireFestaPersonalPrize struct { type MsgMhfAcquireFestaPersonalPrize struct {
AckHandle uint32 AckHandle uint32
PrizeID uint32 PrizeID uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -21,9 +21,9 @@ func (m *MsgMhfAcquireFestaPersonalPrize) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAcquireFestaPersonalPrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfAcquireFestaPersonalPrize) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.PrizeID = bf.ReadUint32() m.PrizeID = bf.ReadUint32()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -1,17 +1,17 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAcquireGuildAdventure represents the MSG_MHF_ACQUIRE_GUILD_ADVENTURE // MsgMhfAcquireGuildAdventure represents the MSG_MHF_ACQUIRE_GUILD_ADVENTURE
type MsgMhfAcquireGuildAdventure struct { type MsgMhfAcquireGuildAdventure struct {
AckHandle uint32 AckHandle uint32
ID uint32 ID uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -21,9 +21,9 @@ func (m *MsgMhfAcquireGuildAdventure) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAcquireGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfAcquireGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.ID = bf.ReadUint32() m.ID = bf.ReadUint32()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAcquireGuildTresureSouvenir represents the MSG_MHF_ACQUIRE_GUILD_TRESURE_SOUVENIR // MsgMhfAcquireGuildTresureSouvenir represents the MSG_MHF_ACQUIRE_GUILD_TRESURE_SOUVENIR

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAcquireMonthlyReward represents the MSG_MHF_ACQUIRE_MONTHLY_REWARD // MsgMhfAcquireMonthlyReward represents the MSG_MHF_ACQUIRE_MONTHLY_REWARD

View File

@@ -86,7 +86,7 @@ func TestMsgMhfAcquireTitleParse(t *testing.T) {
bf := byteframe.NewByteFrame() bf := byteframe.NewByteFrame()
bf.WriteUint32(tt.ackHandle) bf.WriteUint32(tt.ackHandle)
bf.WriteUint16(uint16(len(tt.titleIDs))) // count bf.WriteUint16(uint16(len(tt.titleIDs))) // count
bf.WriteUint16(0) // zeroed bf.WriteUint16(0) // zeroed
for _, id := range tt.titleIDs { for _, id := range tt.titleIDs {
bf.WriteUint16(id) bf.WriteUint16(id)
} }

View File

@@ -1,29 +1,29 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAcquireUdItem represents the MSG_MHF_ACQUIRE_UD_ITEM // MsgMhfAcquireUdItem represents the MSG_MHF_ACQUIRE_UD_ITEM
type MsgMhfAcquireUdItem struct { type MsgMhfAcquireUdItem struct {
AckHandle uint32 AckHandle uint32
Unk0 uint8 Unk0 uint8
// from gal // from gal
// daily = 0 // daily = 0
// personal = 1 // personal = 1
// personal rank = 2 // personal rank = 2
// guild rank = 3 // guild rank = 3
// gcp = 4 // gcp = 4
// from cat // from cat
// treasure achievement = 5 // treasure achievement = 5
// personal achievement = 6 // personal achievement = 6
// guild achievement = 7 // guild achievement = 7
RewardType uint8 RewardType uint8
ItemIDCount uint8 ItemIDCount uint8
Unk3 []byte Unk3 []byte
} }
@@ -34,13 +34,13 @@ func (m *MsgMhfAcquireUdItem) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAcquireUdItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfAcquireUdItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint8() m.Unk0 = bf.ReadUint8()
m.RewardType = bf.ReadUint8() m.RewardType = bf.ReadUint8()
m.ItemIDCount = bf.ReadUint8() m.ItemIDCount = bf.ReadUint8()
for i := uint8(0); i < m.ItemIDCount; i++ { for i := uint8(0); i < m.ItemIDCount; i++ {
bf.ReadUint32() bf.ReadUint32()
} }
return nil return nil
} }

View File

@@ -1,18 +1,18 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAddGuildMissionCount represents the MSG_MHF_ADD_GUILD_MISSION_COUNT // MsgMhfAddGuildMissionCount represents the MSG_MHF_ADD_GUILD_MISSION_COUNT
type MsgMhfAddGuildMissionCount struct { type MsgMhfAddGuildMissionCount struct {
AckHandle uint32 AckHandle uint32
MissionID uint32 MissionID uint32
Count uint32 Count uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -22,10 +22,10 @@ func (m *MsgMhfAddGuildMissionCount) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAddGuildMissionCount) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfAddGuildMissionCount) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.MissionID = bf.ReadUint32() m.MissionID = bf.ReadUint32()
m.Count = bf.ReadUint32() m.Count = bf.ReadUint32()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -1,17 +1,17 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAddGuildWeeklyBonusExceptionalUser represents the MSG_MHF_ADD_GUILD_WEEKLY_BONUS_EXCEPTIONAL_USER // MsgMhfAddGuildWeeklyBonusExceptionalUser represents the MSG_MHF_ADD_GUILD_WEEKLY_BONUS_EXCEPTIONAL_USER
type MsgMhfAddGuildWeeklyBonusExceptionalUser struct { type MsgMhfAddGuildWeeklyBonusExceptionalUser struct {
AckHandle uint32 AckHandle uint32
NumUsers uint8 NumUsers uint8
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -21,9 +21,9 @@ func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.NumUsers = bf.ReadUint8() m.NumUsers = bf.ReadUint8()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -1,9 +1,9 @@
package mhfpacket package mhfpacket
import ( import (
"erupe-ce/common/byteframe"
"erupe-ce/network" "erupe-ce/network"
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/common/byteframe"
) )
// MsgMhfAddKouryouPoint represents the MSG_MHF_ADD_KOURYOU_POINT // MsgMhfAddKouryouPoint represents the MSG_MHF_ADD_KOURYOU_POINT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAddRewardSongCount represents the MSG_MHF_ADD_REWARD_SONG_COUNT // MsgMhfAddRewardSongCount represents the MSG_MHF_ADD_REWARD_SONG_COUNT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAddUdPoint represents the MSG_MHF_ADD_UD_POINT // MsgMhfAddUdPoint represents the MSG_MHF_ADD_UD_POINT

View File

@@ -1,9 +1,9 @@
package mhfpacket package mhfpacket
import ( import (
"erupe-ce/common/byteframe"
"erupe-ce/network" "erupe-ce/network"
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/common/byteframe"
) )
// MsgMhfAddUdTacticsPoint represents the MSG_MHF_ADD_UD_TACTICS_POINT // MsgMhfAddUdTacticsPoint represents the MSG_MHF_ADD_UD_TACTICS_POINT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfAnswerGuildScout represents the MSG_MHF_ANSWER_GUILD_SCOUT // MsgMhfAnswerGuildScout represents the MSG_MHF_ANSWER_GUILD_SCOUT

View File

@@ -1,17 +1,17 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfCancelGuildMissionTarget represents the MSG_MHF_CANCEL_GUILD_MISSION_TARGET // MsgMhfCancelGuildMissionTarget represents the MSG_MHF_CANCEL_GUILD_MISSION_TARGET
type MsgMhfCancelGuildMissionTarget struct { type MsgMhfCancelGuildMissionTarget struct {
AckHandle uint32 AckHandle uint32
MissionID uint32 MissionID uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -21,9 +21,9 @@ func (m *MsgMhfCancelGuildMissionTarget) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfCancelGuildMissionTarget) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfCancelGuildMissionTarget) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.MissionID = bf.ReadUint32() m.MissionID = bf.ReadUint32()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfCancelGuildScout represents the MSG_MHF_CANCEL_GUILD_SCOUT // MsgMhfCancelGuildScout represents the MSG_MHF_CANCEL_GUILD_SCOUT

View File

@@ -1,18 +1,18 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfChargeGuildAdventure represents the MSG_MHF_CHARGE_GUILD_ADVENTURE // MsgMhfChargeGuildAdventure represents the MSG_MHF_CHARGE_GUILD_ADVENTURE
type MsgMhfChargeGuildAdventure struct { type MsgMhfChargeGuildAdventure struct {
AckHandle uint32 AckHandle uint32
ID uint32 ID uint32
Amount uint32 Amount uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -22,10 +22,10 @@ func (m *MsgMhfChargeGuildAdventure) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfChargeGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfChargeGuildAdventure) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.ID = bf.ReadUint32() m.ID = bf.ReadUint32()
m.Amount = bf.ReadUint32() m.Amount = bf.ReadUint32()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfCreateMercenary represents the MSG_MHF_CREATE_MERCENARY // MsgMhfCreateMercenary represents the MSG_MHF_CREATE_MERCENARY

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfDebugPostValue represents the MSG_MHF_DEBUG_POST_VALUE // MsgMhfDebugPostValue represents the MSG_MHF_DEBUG_POST_VALUE

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfEnterTournamentQuest represents the MSG_MHF_ENTER_TOURNAMENT_QUEST // MsgMhfEnterTournamentQuest represents the MSG_MHF_ENTER_TOURNAMENT_QUEST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfEnumerateFestaIntermediatePrize represents the MSG_MHF_ENUMERATE_FESTA_INTERMEDIATE_PRIZE // MsgMhfEnumerateFestaIntermediatePrize represents the MSG_MHF_ENUMERATE_FESTA_INTERMEDIATE_PRIZE

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfEnumerateFestaPersonalPrize represents the MSG_MHF_ENUMERATE_FESTA_PERSONAL_PRIZE // MsgMhfEnumerateFestaPersonalPrize represents the MSG_MHF_ENUMERATE_FESTA_PERSONAL_PRIZE

View File

@@ -1,20 +1,20 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfEnumerateGuildMessageBoard represents the MSG_MHF_ENUMERATE_GUILD_MESSAGE_BOARD // MsgMhfEnumerateGuildMessageBoard represents the MSG_MHF_ENUMERATE_GUILD_MESSAGE_BOARD
type MsgMhfEnumerateGuildMessageBoard struct{ type MsgMhfEnumerateGuildMessageBoard struct {
AckHandle uint32 AckHandle uint32
Unk0 uint32 Unk0 uint32
MaxPosts uint32 // always 100, even on news (00000064) MaxPosts uint32 // always 100, even on news (00000064)
// returning more than 4 news posts WILL softlock // returning more than 4 news posts WILL softlock
BoardType uint32 // 0 => message, 1 => news BoardType uint32 // 0 => message, 1 => news
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -24,10 +24,10 @@ func (m *MsgMhfEnumerateGuildMessageBoard) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfEnumerateGuildMessageBoard) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfEnumerateGuildMessageBoard) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint32() m.Unk0 = bf.ReadUint32()
m.MaxPosts = bf.ReadUint32() m.MaxPosts = bf.ReadUint32()
m.BoardType = bf.ReadUint32() m.BoardType = bf.ReadUint32()
return nil return nil
} }

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfEnumerateMercenaryLog represents the MSG_MHF_ENUMERATE_MERCENARY_LOG // MsgMhfEnumerateMercenaryLog represents the MSG_MHF_ENUMERATE_MERCENARY_LOG

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfEnumerateOrder represents the MSG_MHF_ENUMERATE_ORDER // MsgMhfEnumerateOrder represents the MSG_MHF_ENUMERATE_ORDER

View File

@@ -1,15 +1,15 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfExchangeKouryouPoint represents the MSG_MHF_EXCHANGE_KOURYOU_POINT // MsgMhfExchangeKouryouPoint represents the MSG_MHF_EXCHANGE_KOURYOU_POINT
type MsgMhfExchangeKouryouPoint struct{ type MsgMhfExchangeKouryouPoint struct {
AckHandle uint32 AckHandle uint32
KouryouPoints uint32 KouryouPoints uint32
} }

View File

@@ -10,8 +10,8 @@ import (
// MsgMhfExchangeWeeklyStamp represents the MSG_MHF_EXCHANGE_WEEKLY_STAMP // MsgMhfExchangeWeeklyStamp represents the MSG_MHF_EXCHANGE_WEEKLY_STAMP
type MsgMhfExchangeWeeklyStamp struct { type MsgMhfExchangeWeeklyStamp struct {
AckHandle uint32 AckHandle uint32
StampType string StampType string
ExchangeType uint8 ExchangeType uint8
} }

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGenerateUdGuildMap represents the MSG_MHF_GENERATE_UD_GUILD_MAP // MsgMhfGenerateUdGuildMap represents the MSG_MHF_GENERATE_UD_GUILD_MAP

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetAdditionalBeatReward represents the MSG_MHF_GET_ADDITIONAL_BEAT_REWARD // MsgMhfGetAdditionalBeatReward represents the MSG_MHF_GET_ADDITIONAL_BEAT_REWARD

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetBoostRight represents the MSG_MHF_GET_BOOST_RIGHT // MsgMhfGetBoostRight represents the MSG_MHF_GET_BOOST_RIGHT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetBoostTime represents the MSG_MHF_GET_BOOST_TIME // MsgMhfGetBoostTime represents the MSG_MHF_GET_BOOST_TIME

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetBoostTimeLimit represents the MSG_MHF_GET_BOOST_TIME_LIMIT // MsgMhfGetBoostTimeLimit represents the MSG_MHF_GET_BOOST_TIME_LIMIT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetCaAchievementHist represents the MSG_MHF_GET_CA_ACHIEVEMENT_HIST // MsgMhfGetCaAchievementHist represents the MSG_MHF_GET_CA_ACHIEVEMENT_HIST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetCaUniqueID represents the MSG_MHF_GET_CA_UNIQUE_ID // MsgMhfGetCaUniqueID represents the MSG_MHF_GET_CA_UNIQUE_ID

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetCafeDuration represents the MSG_MHF_GET_CAFE_DURATION // MsgMhfGetCafeDuration represents the MSG_MHF_GET_CAFE_DURATION

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetCafeDurationBonusInfo represents the MSG_MHF_GET_CAFE_DURATION_BONUS_INFO // MsgMhfGetCafeDurationBonusInfo represents the MSG_MHF_GET_CAFE_DURATION_BONUS_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetCogInfo represents the MSG_MHF_GET_COG_INFO // MsgMhfGetCogInfo represents the MSG_MHF_GET_COG_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetDailyMissionMaster represents the MSG_MHF_GET_DAILY_MISSION_MASTER // MsgMhfGetDailyMissionMaster represents the MSG_MHF_GET_DAILY_MISSION_MASTER

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetDailyMissionPersonal represents the MSG_MHF_GET_DAILY_MISSION_PERSONAL // MsgMhfGetDailyMissionPersonal represents the MSG_MHF_GET_DAILY_MISSION_PERSONAL

View File

@@ -1,17 +1,17 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetDistDescription represents the MSG_MHF_GET_DIST_DESCRIPTION // MsgMhfGetDistDescription represents the MSG_MHF_GET_DIST_DESCRIPTION
type MsgMhfGetDistDescription struct{ type MsgMhfGetDistDescription struct {
AckHandle uint32 AckHandle uint32
Unk0 uint8 Unk0 uint8
DistributionID uint32 DistributionID uint32
} }
@@ -27,6 +27,7 @@ func (m *MsgMhfGetDistDescription) Parse(bf *byteframe.ByteFrame, ctx *clientctx
m.DistributionID = bf.ReadUint32() m.DistributionID = bf.ReadUint32()
return nil return nil
} }
// Build builds a binary packet from the current data. // Build builds a binary packet from the current data.
func (m *MsgMhfGetDistDescription) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfGetDistDescription) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
return errors.New("NOT IMPLEMENTED") return errors.New("NOT IMPLEMENTED")

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetEarthStatus represents the MSG_MHF_GET_EARTH_STATUS // MsgMhfGetEarthStatus represents the MSG_MHF_GET_EARTH_STATUS

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetEarthValue represents the MSG_MHF_GET_EARTH_VALUE // MsgMhfGetEarthValue represents the MSG_MHF_GET_EARTH_VALUE
@@ -13,7 +13,7 @@ type MsgMhfGetEarthValue struct {
AckHandle uint32 AckHandle uint32
Unk0 uint32 Unk0 uint32
Unk1 uint32 Unk1 uint32
ReqType uint32 ReqType uint32
Unk3 uint32 Unk3 uint32
Unk4 uint32 Unk4 uint32
Unk5 uint32 Unk5 uint32

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetEnhancedMinidata represents the MSG_MHF_GET_ENHANCED_MINIDATA // MsgMhfGetEnhancedMinidata represents the MSG_MHF_GET_ENHANCED_MINIDATA

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetEquipSkinHist represents the MSG_MHF_GET_EQUIP_SKIN_HIST // MsgMhfGetEquipSkinHist represents the MSG_MHF_GET_EQUIP_SKIN_HIST

View File

@@ -1,9 +1,9 @@
package mhfpacket package mhfpacket
import ( import (
"erupe-ce/common/byteframe"
"erupe-ce/network" "erupe-ce/network"
"erupe-ce/network/clientctx" "erupe-ce/network/clientctx"
"erupe-ce/common/byteframe"
) )
// MsgMhfGetEtcPoints represents the MSG_MHF_GET_ETC_POINTS // MsgMhfGetEtcPoints represents the MSG_MHF_GET_ETC_POINTS

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetExtraInfo represents the MSG_MHF_GET_EXTRA_INFO // MsgMhfGetExtraInfo represents the MSG_MHF_GET_EXTRA_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetFpointExchangeList represents the MSG_MHF_GET_FPOINT_EXCHANGE_LIST // MsgMhfGetFpointExchangeList represents the MSG_MHF_GET_FPOINT_EXCHANGE_LIST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGachaPoint represents the MSG_MHF_GET_GACHA_POINT // MsgMhfGetGachaPoint represents the MSG_MHF_GET_GACHA_POINT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildManageRight represents the MSG_MHF_GET_GUILD_MANAGE_RIGHT // MsgMhfGetGuildManageRight represents the MSG_MHF_GET_GUILD_MANAGE_RIGHT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildMissionList represents the MSG_MHF_GET_GUILD_MISSION_LIST // MsgMhfGetGuildMissionList represents the MSG_MHF_GET_GUILD_MISSION_LIST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildMissionRecord represents the MSG_MHF_GET_GUILD_MISSION_RECORD // MsgMhfGetGuildMissionRecord represents the MSG_MHF_GET_GUILD_MISSION_RECORD

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildScoutList represents the MSG_MHF_GET_GUILD_SCOUT_LIST // MsgMhfGetGuildScoutList represents the MSG_MHF_GET_GUILD_SCOUT_LIST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildTargetMemberNum represents the MSG_MHF_GET_GUILD_TARGET_MEMBER_NUM // MsgMhfGetGuildTargetMemberNum represents the MSG_MHF_GET_GUILD_TARGET_MEMBER_NUM

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildTresureSouvenir represents the MSG_MHF_GET_GUILD_TRESURE_SOUVENIR // MsgMhfGetGuildTresureSouvenir represents the MSG_MHF_GET_GUILD_TRESURE_SOUVENIR

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildWeeklyBonusActiveCount represents the MSG_MHF_GET_GUILD_WEEKLY_BONUS_ACTIVE_COUNT // MsgMhfGetGuildWeeklyBonusActiveCount represents the MSG_MHF_GET_GUILD_WEEKLY_BONUS_ACTIVE_COUNT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetGuildWeeklyBonusMaster represents the MSG_MHF_GET_GUILD_WEEKLY_BONUS_MASTER // MsgMhfGetGuildWeeklyBonusMaster represents the MSG_MHF_GET_GUILD_WEEKLY_BONUS_MASTER

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetKeepLoginBoostStatus represents the MSG_MHF_GET_KEEP_LOGIN_BOOST_STATUS // MsgMhfGetKeepLoginBoostStatus represents the MSG_MHF_GET_KEEP_LOGIN_BOOST_STATUS

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetKijuInfo represents the MSG_MHF_GET_KIJU_INFO // MsgMhfGetKijuInfo represents the MSG_MHF_GET_KIJU_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetKouryouPoint represents the MSG_MHF_GET_KOURYOU_POINT // MsgMhfGetKouryouPoint represents the MSG_MHF_GET_KOURYOU_POINT

View File

@@ -1,15 +1,15 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetLobbyCrowd represents the MSG_MHF_GET_LOBBY_CROWD // MsgMhfGetLobbyCrowd represents the MSG_MHF_GET_LOBBY_CROWD
type MsgMhfGetLobbyCrowd struct{ type MsgMhfGetLobbyCrowd struct {
AckHandle uint32 AckHandle uint32
Server uint32 Server uint32
Room uint32 Room uint32

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetMyhouseInfo represents the MSG_MHF_GET_MYHOUSE_INFO // MsgMhfGetMyhouseInfo represents the MSG_MHF_GET_MYHOUSE_INFO

View File

@@ -1,20 +1,20 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetPaperData represents the MSG_MHF_GET_PAPER_DATA // MsgMhfGetPaperData represents the MSG_MHF_GET_PAPER_DATA
type MsgMhfGetPaperData struct { type MsgMhfGetPaperData struct {
// Communicator type, multi-format. This might be valid for only one type. // Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32 AckHandle uint32
Unk0 uint32 Unk0 uint32
Unk1 uint32 Unk1 uint32
DataType uint32 DataType uint32
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetRejectGuildScout represents the MSG_MHF_GET_REJECT_GUILD_SCOUT // MsgMhfGetRejectGuildScout represents the MSG_MHF_GET_REJECT_GUILD_SCOUT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetRengokuRankingRank represents the MSG_MHF_GET_RENGOKU_RANKING_RANK // MsgMhfGetRengokuRankingRank represents the MSG_MHF_GET_RENGOKU_RANKING_RANK

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetRestrictionEvent represents the MSG_MHF_GET_RESTRICTION_EVENT // MsgMhfGetRestrictionEvent represents the MSG_MHF_GET_RESTRICTION_EVENT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetRewardSong represents the MSG_MHF_GET_REWARD_SONG // MsgMhfGetRewardSong represents the MSG_MHF_GET_REWARD_SONG

View File

@@ -10,7 +10,7 @@ import (
// MsgMhfGetTenrouirai represents the MSG_MHF_GET_TENROUIRAI // MsgMhfGetTenrouirai represents the MSG_MHF_GET_TENROUIRAI
type MsgMhfGetTenrouirai struct { type MsgMhfGetTenrouirai struct {
AckHandle uint32 AckHandle uint32
Unk0 uint8 Unk0 uint8
DataType uint8 DataType uint8
GuildID uint32 GuildID uint32

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetTrendWeapon represents the MSG_MHF_GET_TREND_WEAPON // MsgMhfGetTrendWeapon represents the MSG_MHF_GET_TREND_WEAPON

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdBonusQuestInfo represents the MSG_MHF_GET_UD_BONUS_QUEST_INFO // MsgMhfGetUdBonusQuestInfo represents the MSG_MHF_GET_UD_BONUS_QUEST_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdDailyPresentList represents the MSG_MHF_GET_UD_DAILY_PRESENT_LIST // MsgMhfGetUdDailyPresentList represents the MSG_MHF_GET_UD_DAILY_PRESENT_LIST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdGuildMapInfo represents the MSG_MHF_GET_UD_GUILD_MAP_INFO // MsgMhfGetUdGuildMapInfo represents the MSG_MHF_GET_UD_GUILD_MAP_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdInfo represents the MSG_MHF_GET_UD_INFO // MsgMhfGetUdInfo represents the MSG_MHF_GET_UD_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdMonsterPoint represents the MSG_MHF_GET_UD_MONSTER_POINT // MsgMhfGetUdMonsterPoint represents the MSG_MHF_GET_UD_MONSTER_POINT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdMyPoint represents the MSG_MHF_GET_UD_MY_POINT // MsgMhfGetUdMyPoint represents the MSG_MHF_GET_UD_MY_POINT

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdMyRanking represents the MSG_MHF_GET_UD_MY_RANKING // MsgMhfGetUdMyRanking represents the MSG_MHF_GET_UD_MY_RANKING

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdNormaPresentList represents the MSG_MHF_GET_UD_NORMA_PRESENT_LIST // MsgMhfGetUdNormaPresentList represents the MSG_MHF_GET_UD_NORMA_PRESENT_LIST

View File

@@ -1,17 +1,17 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdRanking represents the MSG_MHF_GET_UD_RANKING // MsgMhfGetUdRanking represents the MSG_MHF_GET_UD_RANKING
type MsgMhfGetUdRanking struct{ type MsgMhfGetUdRanking struct {
AckHandle uint32 AckHandle uint32
Unk0 uint8 Unk0 uint8
} }
// Opcode returns the ID associated with this packet type. // Opcode returns the ID associated with this packet type.
@@ -22,7 +22,7 @@ func (m *MsgMhfGetUdRanking) Opcode() network.PacketID {
// Parse parses the packet from binary // Parse parses the packet from binary
func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint8() m.Unk0 = bf.ReadUint8()
return nil return nil
} }

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdRankingRewardList represents the MSG_MHF_GET_UD_RANKING_REWARD_LIST // MsgMhfGetUdRankingRewardList represents the MSG_MHF_GET_UD_RANKING_REWARD_LIST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdSchedule represents the MSG_MHF_GET_UD_SCHEDULE // MsgMhfGetUdSchedule represents the MSG_MHF_GET_UD_SCHEDULE

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdSelectedColorInfo represents the MSG_MHF_GET_UD_SELECTED_COLOR_INFO // MsgMhfGetUdSelectedColorInfo represents the MSG_MHF_GET_UD_SELECTED_COLOR_INFO

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdShopCoin represents the MSG_MHF_GET_UD_SHOP_COIN // MsgMhfGetUdShopCoin represents the MSG_MHF_GET_UD_SHOP_COIN

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdTacticsBonusQuest represents the MSG_MHF_GET_UD_TACTICS_BONUS_QUEST // MsgMhfGetUdTacticsBonusQuest represents the MSG_MHF_GET_UD_TACTICS_BONUS_QUEST

View File

@@ -1,11 +1,11 @@
package mhfpacket package mhfpacket
import ( import (
"errors" "errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe" "erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
) )
// MsgMhfGetUdTacticsFirstQuestBonus represents the MSG_MHF_GET_UD_TACTICS_FIRST_QUEST_BONUS // MsgMhfGetUdTacticsFirstQuestBonus represents the MSG_MHF_GET_UD_TACTICS_FIRST_QUEST_BONUS

Some files were not shown because too many files have changed in this diff Show More