Merge pull request #10 from Andoryuuta/minor-cleanup

Minor cleanup
This commit is contained in:
Andrew Gutekanst
2020-03-03 10:14:11 -05:00
committed by GitHub
305 changed files with 614 additions and 500 deletions

View File

@@ -6,7 +6,7 @@
"devmodeoptions": {
"cleandb": false,
"maxlauncherhr": true,
"fixedstageid": true
"fixedstageid": true
},
"database": {

View File

@@ -21,4 +21,4 @@ func (m *MsgCaExchangeItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgCaExchangeItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgHead) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgHead) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcceptReadReward) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcceptReadReward) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireFesta) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireFesta) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireFestaIntermediatePrize) Parse(bf *byteframe.ByteFrame) err
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireFestaIntermediatePrize) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireFestaPersonalPrize) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireFestaPersonalPrize) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireGuildAdventure) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireGuildAdventure) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireGuildTresure) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireGuildTresure) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireMonthlyItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireMonthlyItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireTitle) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireTitle) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireTournament) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireTournament) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAcquireUdItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAcquireUdItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,8 +6,10 @@ import (
)
// MsgMhfAddAchievement represents the MSG_MHF_ADD_ACHIEVEMENT
type MsgMhfAddAchievement struct{
Unk0 []byte
type MsgMhfAddAchievement struct {
Unk0 uint8
Unk1 uint16
Unk2 uint16
}
// Opcode returns the ID associated with this packet type.
@@ -17,7 +19,9 @@ func (m *MsgMhfAddAchievement) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfAddAchievement) Parse(bf *byteframe.ByteFrame) error {
m.Unk0 = bf.ReadBytes(5)
m.Unk0 = bf.ReadUint8()
m.Unk1 = bf.ReadUint16()
m.Unk2 = bf.ReadUint16()
// doesn't expect a response
return nil
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAddGuildMissionCount) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAddGuildMissionCount) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Parse(bf *byteframe.ByteFrame
// Build builds a binary packet from the current data.
func (m *MsgMhfAddGuildWeeklyBonusExceptionalUser) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,8 +6,8 @@ import (
)
// MsgMhfAddKouryouPoint represents the MSG_MHF_ADD_KOURYOU_POINT
type MsgMhfAddKouryouPoint struct{
AckHandle uint32
type MsgMhfAddKouryouPoint struct {
AckHandle uint32
KouryouPoints uint32
}
@@ -20,7 +20,7 @@ func (m *MsgMhfAddKouryouPoint) Opcode() network.PacketID {
func (m *MsgMhfAddKouryouPoint) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32()
m.KouryouPoints = bf.ReadUint32()
return nil;
return nil
}
// Build builds a binary packet from the current data.

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAddRewardSongCount) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAddRewardSongCount) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAddUdPoint) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAddUdPoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAddUdTacticsPoint) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAddUdTacticsPoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAnnounce) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAnnounce) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfAnswerGuildScout) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfAnswerGuildScout) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfApplyBbsArticle) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfApplyBbsArticle) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfApplyCampaign) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfApplyCampaign) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfApplyDistItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfApplyDistItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfArrangeGuildMember) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfArrangeGuildMember) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCancelGuildMissionTarget) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCancelGuildMissionTarget) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCancelGuildScout) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCancelGuildScout) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCaravanMyRank) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCaravanMyRank) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCaravanMyScore) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCaravanMyScore) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCaravanRanking) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCaravanRanking) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfChargeFesta) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfChargeFesta) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfChargeGuildAdventure) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfChargeGuildAdventure) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCheckDailyCafepoint) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCheckDailyCafepoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCheckMonthlyItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCheckMonthlyItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfContractMercenary) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfContractMercenary) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCreateGuild) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCreateGuild) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfCreateJoint) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfCreateJoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfDebugPostValue) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfDebugPostValue) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfDisplayedAchievement) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfDisplayedAchievement) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnterTournamentQuest) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnterTournamentQuest) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEntryFesta) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEntryFesta) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEntryRookieGuild) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEntryRookieGuild) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEntryTournament) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEntryTournament) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateAiroulist) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateAiroulist) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateCampaign) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateCampaign) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateDistItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateDistItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateFestaMember) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateFestaMember) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,8 +6,11 @@ import (
)
// MsgMhfEnumerateGuacot represents the MSG_MHF_ENUMERATE_GUACOT
type MsgMhfEnumerateGuacot struct{
AckHandle uint32
type MsgMhfEnumerateGuacot struct {
AckHandle uint32
Unk0 uint16 // Hardcoded 0 in binary
Unk1 uint16 // Hardcoded 0 in binary
Unk2 uint16 // Hardcoded 0 in binary
}
// Opcode returns the ID associated with this packet type.
@@ -18,6 +21,9 @@ func (m *MsgMhfEnumerateGuacot) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfEnumerateGuacot) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint16()
m.Unk1 = bf.ReadUint16()
m.Unk2 = bf.ReadUint16()
return nil
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateGuild) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateGuild) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateGuildItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateGuildItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateGuildTresure) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateGuildTresure) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateHouse) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateHouse) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateInvGuild) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateInvGuild) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -11,8 +11,8 @@ type MsgMhfEnumerateQuest struct {
Unk0 uint8 // Hardcoded 0 in the binary
Unk1 uint8
Unk2 uint16
QuestList uint16 // Increments to request following batches of quests
Unk4 uint8 // Hardcoded 0 in the binary
QuestList uint16 // Increments to request following batches of quests
Unk4 uint8 // Hardcoded 0 in the binary
}
// Opcode returns the ID associated with this packet type.

View File

@@ -6,8 +6,11 @@ import (
)
// MsgMhfEnumerateRengokuRanking represents the MSG_MHF_ENUMERATE_RENGOKU_RANKING
type MsgMhfEnumerateRengokuRanking struct{
AckHandle uint32
type MsgMhfEnumerateRengokuRanking struct {
AckHandle uint32
Unk0 uint32
Unk1 uint16 // Hardcoded 0 in the binary
Unk2 uint16 // Hardcoded 00 01 in the binary
}
// Opcode returns the ID associated with this packet type.
@@ -18,7 +21,10 @@ func (m *MsgMhfEnumerateRengokuRanking) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfEnumerateRengokuRanking) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32()
return nil;
m.Unk0 = bf.ReadUint32()
m.Unk1 = bf.ReadUint16()
m.Unk2 = bf.ReadUint16()
return nil
}
// Build builds a binary packet from the current data.

View File

@@ -8,8 +8,8 @@ import (
// MsgMhfEnumerateShop represents the MSG_MHF_ENUMERATE_SHOP
type MsgMhfEnumerateShop struct {
AckHandle uint32
ShopType uint8 // 1 running gachas, 10 normal shop extensions
ShopID uint32
ShopType uint8 // 1 running gachas, 10 normal shop extensions
ShopID uint32
Unk2 uint16 // 00 80 running gachas, 00 20 normal shop
Unk3 uint8
Unk4 uint8

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateTitle) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateTitle) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateUnionItem) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateUnionItem) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfEnumerateWarehouse) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfEnumerateWarehouse) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfExchangeFpoint2Item) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfExchangeFpoint2Item) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfExchangeItem2Fpoint) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfExchangeItem2Fpoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfExchangeKouryouPoint) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfExchangeKouryouPoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfExchangeWeeklyStamp) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfExchangeWeeklyStamp) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetAchievement) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetAchievement) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,12 +6,13 @@ import (
)
// MsgMhfGetAdditionalBeatReward represents the MSG_MHF_GET_ADDITIONAL_BEAT_REWARD
type MsgMhfGetAdditionalBeatReward struct{
type MsgMhfGetAdditionalBeatReward struct {
// Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32
Unk0 uint32
Unk1 uint32
Unk2 uint32
Unk3 uint32
Unk0 uint32
Unk1 uint32
Unk2 uint32
Unk3 uint32
}
// Opcode returns the ID associated with this packet type.

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetBbsSnsStatus) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetBbsSnsStatus) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetBbsUserStatus) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetBbsUserStatus) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetBoxGachaInfo) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetBoxGachaInfo) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetBreakSeibatuLevelReward) Parse(bf *byteframe.ByteFrame) error
// Build builds a binary packet from the current data.
func (m *MsgMhfGetBreakSeibatuLevelReward) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetCaAchievementHist) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetCaAchievementHist) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetCogInfo) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetCogInfo) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetDailyMissionMaster) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetDailyMissionMaster) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetDailyMissionPersonal) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetDailyMissionPersonal) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetDistDescription) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetDistDescription) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetExtraInfo) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetExtraInfo) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetFixedSeibatuRankingTable) Parse(bf *byteframe.ByteFrame) error
// Build builds a binary packet from the current data.
func (m *MsgMhfGetFixedSeibatuRankingTable) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetGachaPlayHistory) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetGachaPlayHistory) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetGemInfo) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetGemInfo) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetGuildTargetMemberNum) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetGuildTargetMemberNum) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetLobbyCrowd) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetLobbyCrowd) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,10 +6,13 @@ import (
)
// MsgMhfGetMyhouseInfo represents the MSG_MHF_GET_MYHOUSE_INFO
type MsgMhfGetMyhouseInfo struct{
AckHandle uint32
Unk0 uint32
Unk1 uint16
type MsgMhfGetMyhouseInfo struct {
AckHandle uint32
Unk0 uint32
// No idea why it would send a buffer of data on a _GET_, but w/e.
DataSize uint8
RawDataPayload []byte
}
// Opcode returns the ID associated with this packet type.
@@ -21,7 +24,8 @@ func (m *MsgMhfGetMyhouseInfo) Opcode() network.PacketID {
func (m *MsgMhfGetMyhouseInfo) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint32()
m.Unk1 = bf.ReadUint16()
m.DataSize = bf.ReadUint8()
m.RawDataPayload = bf.ReadBytes(uint(m.DataSize))
return nil
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetNotice) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetNotice) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -7,10 +7,11 @@ import (
// MsgMhfGetPaperData represents the MSG_MHF_GET_PAPER_DATA
type MsgMhfGetPaperData struct {
// Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32
Unk0 uint32
Unk1 uint32
Unk2 uint32
Unk0 uint32
Unk1 uint32
Unk2 uint32
}
// Opcode returns the ID associated with this packet type.

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetRandFromTable) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetRandFromTable) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,9 +6,9 @@ import (
)
// MsgMhfGetRengokuBinary represents the MSG_MHF_GET_RENGOKU_BINARY
type MsgMhfGetRengokuBinary struct{
AckHandle uint32
Unk0 uint8
type MsgMhfGetRengokuBinary struct {
AckHandle uint32
Unk0 uint8 // Hardcoded 0 in binary
}
// Opcode returns the ID associated with this packet type.

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetRestrictionEvent) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetRestrictionEvent) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetRyoudama) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetRyoudama) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -7,6 +7,7 @@ import (
// MsgMhfGetSeibattle represents the MSG_MHF_GET_SEIBATTLE
type MsgMhfGetSeibattle struct {
// Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32
Unk0 uint8
Unk1 uint8

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetSenyuDailyCount) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetSenyuDailyCount) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetStepupStatus) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetStepupStatus) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,12 +6,12 @@ import (
)
// MsgMhfGetTenrouirai represents the MSG_MHF_GET_TENROUIRAI
type MsgMhfGetTenrouirai struct{
type MsgMhfGetTenrouirai struct {
// Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32
Unk0 uint16
Unk1 uint32
Unk2 uint16
Unk0 uint16
Unk1 uint32
Unk2 uint16
}
// Opcode returns the ID associated with this packet type.

View File

@@ -6,10 +6,11 @@ import (
)
// MsgMhfGetTinyBin represents the MSG_MHF_GET_TINY_BIN
type MsgMhfGetTinyBin struct{
type MsgMhfGetTinyBin struct {
// Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32
Unk0 uint16
Unk1 uint8
Unk0 uint16
Unk1 uint8
}
// Opcode returns the ID associated with this packet type.

View File

@@ -17,6 +17,7 @@ const (
// MsgMhfGetTowerInfo represents the MSG_MHF_GET_TOWER_INFO
type MsgMhfGetTowerInfo struct {
// Communicator type, multi-format. This might be valid for only one type.
AckHandle uint32
InfoType uint32 // Requested response type
Unk0 uint32

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetUdRanking) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetUdRanking) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -6,7 +6,7 @@ import (
)
// MsgMhfGetUdTacticsFollower represents the MSG_MHF_GET_UD_TACTICS_FOLLOWER
type MsgMhfGetUdTacticsFollower struct{
type MsgMhfGetUdTacticsFollower struct {
AckHandle uint32
}
@@ -24,4 +24,4 @@ func (m *MsgMhfGetUdTacticsFollower) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetUdTacticsFollower) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetUdTacticsRanking) Parse(bf *byteframe.ByteFrame) error {
// Build builds a binary packet from the current data.
func (m *MsgMhfGetUdTacticsRanking) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

View File

@@ -21,4 +21,4 @@ func (m *MsgMhfGetUdTacticsRemainingPoint) Parse(bf *byteframe.ByteFrame) error
// Build builds a binary packet from the current data.
func (m *MsgMhfGetUdTacticsRemainingPoint) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}

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