diff --git a/proto/AvatarFetterDataNotify.proto b/proto/AvatarFetterDataNotify.proto new file mode 100644 index 0000000..7e5d8e2 --- /dev/null +++ b/proto/AvatarFetterDataNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarFetterInfo.proto"; + +message AvatarFetterDataNotify { + map fetterInfoMap = 1; +} diff --git a/proto/AvatarFetterLevelRewardReq.proto b/proto/AvatarFetterLevelRewardReq.proto new file mode 100644 index 0000000..c97f532 --- /dev/null +++ b/proto/AvatarFetterLevelRewardReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFetterLevelRewardReq { + uint64 avatarGuid = 1; + uint32 fetterLevel = 2; +} diff --git a/proto/AvatarFetterLevelRewardRsp.proto b/proto/AvatarFetterLevelRewardRsp.proto new file mode 100644 index 0000000..6e4fc21 --- /dev/null +++ b/proto/AvatarFetterLevelRewardRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFetterLevelRewardRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 fetterLevel = 3; + uint32 rewardId = 4; +} diff --git a/proto/ChangeMailStarNotify.proto b/proto/ChangeMailStarNotify.proto new file mode 100644 index 0000000..05e5b22 --- /dev/null +++ b/proto/ChangeMailStarNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMailStarNotify { + repeated uint32 mailIdList = 1; + bool isStar = 2; +} diff --git a/proto/DelMailReq.proto b/proto/DelMailReq.proto new file mode 100644 index 0000000..5f07ac0 --- /dev/null +++ b/proto/DelMailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelMailReq { + repeated uint32 mailIdList = 1; +} diff --git a/proto/DelMailRsp.proto b/proto/DelMailRsp.proto new file mode 100644 index 0000000..2fd5a7b --- /dev/null +++ b/proto/DelMailRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelMailRsp { + int32 retcode = 1; + repeated uint32 mailIdList = 2; +} diff --git a/proto/EquipParam.proto b/proto/EquipParam.proto new file mode 100644 index 0000000..047ce4b --- /dev/null +++ b/proto/EquipParam.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EquipParam { + uint32 itemId = 1; + uint32 itemNum = 2; + uint32 itemLevel = 3; + uint32 PromoteLevel = 4; +} diff --git a/proto/EvtDoSkillSuccNotify.proto b/proto/EvtDoSkillSuccNotify.proto new file mode 100644 index 0000000..6c626a8 --- /dev/null +++ b/proto/EvtDoSkillSuccNotify.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "Vector.proto"; + +message EvtDoSkillSuccNotify { + ForwardType forwardType = 1; + uint32 casterId = 2; + uint32 skillId = 3; + Vector forward = 4; +} diff --git a/proto/FetterState.proto b/proto/FetterState.proto new file mode 100644 index 0000000..2121d45 --- /dev/null +++ b/proto/FetterState.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FetterState { + NONE = 0; + NOT_OPEN = 1; + OPEN = 2; + FINISH = 3; +} diff --git a/proto/GetAllMailReq.proto b/proto/GetAllMailReq.proto new file mode 100644 index 0000000..d116e09 --- /dev/null +++ b/proto/GetAllMailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAllMailReq { + bool isGiftMail = 1; +} diff --git a/proto/GetAllMailRsp.proto b/proto/GetAllMailRsp.proto new file mode 100644 index 0000000..6c7d7f3 --- /dev/null +++ b/proto/GetAllMailRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailData.proto"; + +message GetAllMailRsp { + int32 retcode = 1; + repeated MailData mailList = 2; + bool isTruncated = 3; +} diff --git a/proto/GetMailItemReq.proto b/proto/GetMailItemReq.proto new file mode 100644 index 0000000..df20fdc --- /dev/null +++ b/proto/GetMailItemReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetMailItemReq { + repeated uint32 mailIdList = 1; +} diff --git a/proto/GetMailItemRsp.proto b/proto/GetMailItemRsp.proto new file mode 100644 index 0000000..4eb3017 --- /dev/null +++ b/proto/GetMailItemRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EquipParam.proto"; + +message GetMailItemRsp { + int32 retcode = 1; + repeated uint32 mailIdList = 2; + repeated EquipParam itemList = 3; +} diff --git a/proto/MailChangeNotify.proto b/proto/MailChangeNotify.proto new file mode 100644 index 0000000..0fe80b2 --- /dev/null +++ b/proto/MailChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailData.proto"; + +message MailChangeNotify { + repeated MailData mailList = 1; + repeated uint32 delMailIdList = 2; +} diff --git a/proto/MailData.proto b/proto/MailData.proto new file mode 100644 index 0000000..fe74217 --- /dev/null +++ b/proto/MailData.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MailTextContent.proto"; +import "MailItem.proto"; + +message MailData { + uint32 mailId = 1; + MailTextContent mailTextContent = 4; + repeated MailItem itemList = 7; + uint32 sendTime = 8; + uint32 expireTime = 9; + uint32 importance = 10; + bool isRead = 11; + bool isAttachmentGot = 12; + uint32 configId = 13; + repeated string argumentList = 14; + uint32 stateValue = 15; +} diff --git a/proto/MailItem.proto b/proto/MailItem.proto new file mode 100644 index 0000000..72bcb8e --- /dev/null +++ b/proto/MailItem.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; +import "MaterialDeleteInfo.proto"; + +message MailItem { + ItemParam itemParam = 1; + MaterialDeleteInfo deleteInfo = 2; +} diff --git a/proto/MailTextContent.proto b/proto/MailTextContent.proto new file mode 100644 index 0000000..097710f --- /dev/null +++ b/proto/MailTextContent.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MailTextContent { + string title = 1; + string content = 2; + string sender = 3; +} diff --git a/proto/NpcTalkReq.proto b/proto/NpcTalkReq.proto new file mode 100644 index 0000000..80490a6 --- /dev/null +++ b/proto/NpcTalkReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message NpcTalkReq { + uint32 npc_entity_id = 1; + uint32 talk_id = 3; + uint32 entity_id = 4; +} diff --git a/proto/NpcTalkRsp.proto b/proto/NpcTalkRsp.proto new file mode 100644 index 0000000..0d02fa5 --- /dev/null +++ b/proto/NpcTalkRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message NpcTalkRsp { + int32 retcode = 1; + uint32 npc_entity_id = 2; + uint32 cur_talk_id = 4; + uint32 entity_id = 5; +} diff --git a/proto/ReadMailNotify.proto b/proto/ReadMailNotify.proto new file mode 100644 index 0000000..d48c0d5 --- /dev/null +++ b/proto/ReadMailNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReadMailNotify { + repeated uint32 mailIdList = 1; +} diff --git a/proto/SceneTransToPointReq.proto b/proto/SceneTransToPointReq.proto new file mode 100644 index 0000000..0eae549 --- /dev/null +++ b/proto/SceneTransToPointReq.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneTransToPointReq { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + IS_ALLOW_CLIENT = 1; + CMD_ID = 219; + } + + uint32 sceneId = 1; + uint32 pointId = 2; +} diff --git a/proto/SceneTransToPointRsp.proto b/proto/SceneTransToPointRsp.proto new file mode 100644 index 0000000..1182c69 --- /dev/null +++ b/proto/SceneTransToPointRsp.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneTransToPointRsp { + enum CmdId { + option allow_alias = true; + NONE = 0; + ENET_CHANNEL_ID = 0; + ENET_IS_RELIABLE = 1; + CMD_ID = 220; + } + + int32 retcode = 1; + uint32 sceneId = 2; + uint32 pointId = 3; +} diff --git a/proto/SetEntityClientDataNotify.proto b/proto/SetEntityClientDataNotify.proto new file mode 100644 index 0000000..5d16ceb --- /dev/null +++ b/proto/SetEntityClientDataNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EntityClientData.proto"; + +message SetEntityClientDataNotify { + uint32 entityId = 1; + EntityClientData entityClientData = 2; +} diff --git a/proto/SetPlayerBirthdayReq.proto b/proto/SetPlayerBirthdayReq.proto new file mode 100644 index 0000000..74b0df9 --- /dev/null +++ b/proto/SetPlayerBirthdayReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "proto/Birthday.proto"; + +message SetPlayerBirthdayReq { + Birthday birth = 1; +} diff --git a/proto/SetPlayerBirthdayRsp.proto b/proto/SetPlayerBirthdayRsp.proto new file mode 100644 index 0000000..5a830c0 --- /dev/null +++ b/proto/SetPlayerBirthdayRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; +import "proto/Birthday.proto"; + +message SetPlayerBirthdayRsp { + Birthday birth = 1; +} diff --git a/proto/SitReq.proto b/proto/SitReq.proto new file mode 100644 index 0000000..4a2b76e --- /dev/null +++ b/proto/SitReq.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message SitReq { + uint64 chair_id = 1; + Vector position = 2; +} diff --git a/proto/SitRsp.proto b/proto/SitRsp.proto new file mode 100644 index 0000000..16b3097 --- /dev/null +++ b/proto/SitRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message SitRsp { + uint32 entity_id = 2; + Vector position = 3; + uint64 chair_id = 4; +} diff --git a/proto/WorldPlayerLocationInfo.proto b/proto/WorldPlayerLocationInfo.proto new file mode 100644 index 0000000..8afcf18 --- /dev/null +++ b/proto/WorldPlayerLocationInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; + +message WorldPlayerLocationInfo { + uint32 sceneId = 1; + PlayerLocationInfo playerLoc = 2; +} diff --git a/proto/WorldPlayerLocationNotify.proto b/proto/WorldPlayerLocationNotify.proto index d43efba..c71898a 100644 --- a/proto/WorldPlayerLocationNotify.proto +++ b/proto/WorldPlayerLocationNotify.proto @@ -2,8 +2,8 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; -import "PlayerLocationInfo.proto"; +import "WorldPlayerLocationInfo.proto"; message WorldPlayerLocationNotify { - repeated PlayerLocationInfo playerLocList = 1; + repeated WorldPlayerLocationInfo playerLocList = 2; }