mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 00:15:08 +01:00
go fmt
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfAddAchievement represents the MSG_MHF_ADD_ACHIEVEMENT
|
||||
type MsgMhfAddAchievement struct{
|
||||
type MsgMhfAddAchievement struct {
|
||||
Unk0 []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfEnumerateGuacot represents the MSG_MHF_ENUMERATE_GUACOT
|
||||
type MsgMhfEnumerateGuacot struct{
|
||||
AckHandle uint32
|
||||
type MsgMhfEnumerateGuacot struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfEnumerateRengokuRanking represents the MSG_MHF_ENUMERATE_RENGOKU_RANKING
|
||||
type MsgMhfEnumerateRengokuRanking struct{
|
||||
AckHandle uint32
|
||||
type MsgMhfEnumerateRengokuRanking struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
@@ -18,7 +18,7 @@ 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;
|
||||
return nil
|
||||
}
|
||||
|
||||
// Build builds a binary packet from the current data.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfGetAdditionalBeatReward represents the MSG_MHF_GET_ADDITIONAL_BEAT_REWARD
|
||||
type MsgMhfGetAdditionalBeatReward struct{
|
||||
type MsgMhfGetAdditionalBeatReward struct {
|
||||
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.
|
||||
|
||||
@@ -6,10 +6,10 @@ 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
|
||||
Unk1 uint16
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
// MsgMhfGetPaperData represents the MSG_MHF_GET_PAPER_DATA
|
||||
type MsgMhfGetPaperData struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint32
|
||||
Unk1 uint32
|
||||
Unk2 uint32
|
||||
Unk0 uint32
|
||||
Unk1 uint32
|
||||
Unk2 uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,12 +6,11 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfGetTenrouirai represents the MSG_MHF_GET_TENROUIRAI
|
||||
type MsgMhfGetTenrouirai struct{
|
||||
type MsgMhfGetTenrouirai struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint16
|
||||
Unk1 uint32
|
||||
Unk2 uint16
|
||||
|
||||
Unk0 uint16
|
||||
Unk1 uint32
|
||||
Unk2 uint16
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfGetTinyBin represents the MSG_MHF_GET_TINY_BIN
|
||||
type MsgMhfGetTinyBin struct{
|
||||
type MsgMhfGetTinyBin struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint16
|
||||
Unk1 uint8
|
||||
Unk0 uint16
|
||||
Unk1 uint8
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfGetUdTacticsFollower represents the MSG_MHF_GET_UD_TACTICS_FOLLOWER
|
||||
type MsgMhfGetUdTacticsFollower struct{
|
||||
type MsgMhfGetUdTacticsFollower struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfListMember represents the MSG_MHF_LIST_MEMBER
|
||||
type MsgMhfListMember struct{
|
||||
type MsgMhfListMember struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint16 // Hardcoded 01 00 in the JP client.
|
||||
Unk0 uint16 // Hardcoded 01 00 in the JP client.
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfLoadHouse represents the MSG_MHF_LOAD_HOUSE
|
||||
type MsgMhfLoadHouse struct{
|
||||
AckHandle uint32
|
||||
Unk0 uint8
|
||||
Unk1 uint32
|
||||
Unk2 uint8
|
||||
Unk3 uint32
|
||||
type MsgMhfLoadHouse struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint8
|
||||
Unk1 uint32
|
||||
Unk2 uint8
|
||||
Unk3 uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfLoadOtomoAirou represents the MSG_MHF_LOAD_OTOMO_AIROU
|
||||
type MsgMhfLoadOtomoAirou struct{
|
||||
type MsgMhfLoadOtomoAirou struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfLoadPartner represents the MSG_MHF_LOAD_PARTNER
|
||||
type MsgMhfLoadPartner struct{
|
||||
type MsgMhfLoadPartner struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfPostBoostTime represents the MSG_MHF_POST_BOOST_TIME
|
||||
type MsgMhfPostBoostTime struct{
|
||||
type MsgMhfPostBoostTime struct {
|
||||
AckHandle uint32
|
||||
BoostTime uint32
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfPostTowerInfo represents the MSG_MHF_POST_TOWER_INFO
|
||||
type MsgMhfPostTowerInfo struct{
|
||||
type MsgMhfPostTowerInfo struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint32
|
||||
Unk1 uint32
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfSaveDecoMyset represents the MSG_MHF_SAVE_DECO_MYSET
|
||||
type MsgMhfSaveDecoMyset struct{
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
type MsgMhfSaveDecoMyset struct {
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
RawDataPayload []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
type MsgMhfSaveHunterNavi struct {
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
IsDataDiff bool
|
||||
IsDataDiff bool
|
||||
RawDataPayload []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfSaveOtomoAirou represents the MSG_MHF_SAVE_OTOMO_AIROU
|
||||
type MsgMhfSaveOtomoAirou struct{
|
||||
type MsgMhfSaveOtomoAirou struct {
|
||||
AckHandle uint32
|
||||
DataSize uint16
|
||||
RawDataPayload []byte
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfSavePlateBox represents the MSG_MHF_SAVE_PLATE_BOX
|
||||
type MsgMhfSavePlateBox struct{
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
IsDataDiff bool
|
||||
type MsgMhfSavePlateBox struct {
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
IsDataDiff bool
|
||||
RawDataPayload []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfSavePlateData represents the MSG_MHF_SAVE_PLATE_DATA
|
||||
type MsgMhfSavePlateData struct{
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
IsDataDiff bool
|
||||
type MsgMhfSavePlateData struct {
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
IsDataDiff bool
|
||||
RawDataPayload []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfSavePlateMyset represents the MSG_MHF_SAVE_PLATE_MYSET
|
||||
type MsgMhfSavePlateMyset struct{
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
type MsgMhfSavePlateMyset struct {
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
RawDataPayload []byte
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfSaveRengokuData represents the MSG_MHF_SAVE_RENGOKU_DATA
|
||||
type MsgMhfSaveRengokuData struct{
|
||||
type MsgMhfSaveRengokuData struct {
|
||||
AckHandle uint32
|
||||
DataSize uint32
|
||||
RawDataPayload []byte
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
type MsgMhfSavedata struct {
|
||||
AckHandle uint32
|
||||
AllocMemSize uint32
|
||||
SaveType uint8 // Either 1 or 2, representing a true or false value for some reason.
|
||||
SaveType uint8 // Either 1 or 2, representing a true or false value for some reason.
|
||||
Unk1 uint32
|
||||
DataSize uint32
|
||||
RawDataPayload []byte
|
||||
|
||||
@@ -6,17 +6,17 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfStampcardStamp represents the MSG_MHF_STAMPCARD_STAMP
|
||||
type MsgMhfStampcardStamp struct{
|
||||
type MsgMhfStampcardStamp struct {
|
||||
// probably not actual format, just lined up neatly to an example packet
|
||||
AckHandle uint32
|
||||
Unk0 uint32
|
||||
Unk1 uint32
|
||||
Unk2 uint32
|
||||
Unk3 uint32
|
||||
Unk4 uint32
|
||||
Unk5 uint32
|
||||
Unk6 uint32
|
||||
Unk7 uint32
|
||||
Unk0 uint32
|
||||
Unk1 uint32
|
||||
Unk2 uint32
|
||||
Unk3 uint32
|
||||
Unk4 uint32
|
||||
Unk5 uint32
|
||||
Unk6 uint32
|
||||
Unk7 uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,11 +6,11 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfStateFestaG represents the MSG_MHF_STATE_FESTA_G
|
||||
type MsgMhfStateFestaG struct{
|
||||
type MsgMhfStateFestaG struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint32 // Shared ID of something.
|
||||
Unk1 uint32
|
||||
Unk2 uint16 // Hardcoded 0 in the binary.
|
||||
Unk0 uint32 // Shared ID of something.
|
||||
Unk1 uint32
|
||||
Unk2 uint16 // Hardcoded 0 in the binary.
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfTransferItem represents the MSG_MHF_TRANSFER_ITEM
|
||||
type MsgMhfTransferItem struct{
|
||||
type MsgMhfTransferItem struct {
|
||||
AckHandle uint32
|
||||
// looking at packets, these were static across sessions and did not actually
|
||||
// correlate with any item IDs that would make sense to get after quests so
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfUpdateCafepoint represents the MSG_MHF_UPDATE_CAFEPOINT
|
||||
type MsgMhfUpdateCafepoint struct{
|
||||
type MsgMhfUpdateCafepoint struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint32
|
||||
Unk0 uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfUpdateEquipSkinHist represents the MSG_MHF_UPDATE_EQUIP_SKIN_HIST
|
||||
type MsgMhfUpdateEquipSkinHist struct{
|
||||
type MsgMhfUpdateEquipSkinHist struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfUpdateGuacot represents the MSG_MHF_UPDATE_GUACOT
|
||||
type MsgMhfUpdateGuacot struct{
|
||||
AckHandle uint32
|
||||
type MsgMhfUpdateGuacot struct {
|
||||
AckHandle uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
// MsgMhfUpdateMyhouseInfo represents the MSG_MHF_UPDATE_MYHOUSE_INFO
|
||||
type MsgMhfUpdateMyhouseInfo struct{
|
||||
AckHandle uint32
|
||||
Unk0 []byte
|
||||
type MsgMhfUpdateMyhouseInfo struct {
|
||||
AckHandle uint32
|
||||
Unk0 []byte
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
)
|
||||
|
||||
// MsgSysHideClient represents the MSG_SYS_HIDE_CLIENT
|
||||
type MsgSysHideClient struct{
|
||||
type MsgSysHideClient struct {
|
||||
Hide bool
|
||||
Unk0 uint16 // Hardcoded 0 in binary
|
||||
Unk1 uint8 // Hardcoded 0 in binary
|
||||
Unk1 uint8 // Hardcoded 0 in binary
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
// MsgSysLogout represents the MSG_SYS_LOGOUT
|
||||
type MsgSysLogout struct{
|
||||
Unk0 uint8
|
||||
type MsgSysLogout struct {
|
||||
Unk0 uint8
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
// MsgSysPositionObject represents the MSG_SYS_POSITION_OBJECT
|
||||
type MsgSysPositionObject struct{
|
||||
ObjID uint32
|
||||
type MsgSysPositionObject struct {
|
||||
ObjID uint32
|
||||
X, Y, Z float32
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// MsgSysWaitStageBinary represents the MSG_SYS_WAIT_STAGE_BINARY
|
||||
type MsgSysWaitStageBinary struct{
|
||||
type MsgSysWaitStageBinary struct {
|
||||
AckHandle uint32
|
||||
BinaryType0 uint8
|
||||
BinaryType1 uint8
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user