【猫草大作战】-优化

This commit is contained in:
hahwu 2025-12-08 19:04:48 +08:00
parent f385a7f546
commit eb71e599a2
2 changed files with 23 additions and 3 deletions

View File

@ -5853,6 +5853,8 @@ func ReqCatnipEmoji(player *Player, buf []byte) error {
})
player.PushClientRes(&msg.ResCatnipEmoji{
Code: msg.RES_CODE_SUCCESS,
EmojiId: req.EmojiId,
Id: req.Id,
})
player.CatnipBackData()

View File

@ -26972,6 +26972,8 @@ type ResCatnipEmoji struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code RES_CODE `protobuf:"varint,1,opt,name=Code,proto3,enum=tutorial.RES_CODE" json:"Code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
EmojiId int32 `protobuf:"varint,3,opt,name=EmojiId,proto3" json:"EmojiId,omitempty"` // 表情id
Id int32 `protobuf:"varint,4,opt,name=Id,proto3" json:"Id,omitempty"` // 猫草id
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@ -27020,6 +27022,20 @@ func (x *ResCatnipEmoji) GetMsg() string {
return ""
}
func (x *ResCatnipEmoji) GetEmojiId() int32 {
if x != nil {
return x.EmojiId
}
return 0
}
func (x *ResCatnipEmoji) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
// -------------------后台管理-------------------
type AdminReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
@ -29428,10 +29444,12 @@ const file_proto_Gameapi_proto_rawDesc = "" +
"\x03Msg\x18\x02 \x01(\tR\x03Msg\":\n" +
"\x0eReqCatnipEmoji\x12\x0e\n" +
"\x02Id\x18\x01 \x01(\x05R\x02Id\x12\x18\n" +
"\aEmojiId\x18\x02 \x01(\x05R\aEmojiId\"J\n" +
"\aEmojiId\x18\x02 \x01(\x05R\aEmojiId\"t\n" +
"\x0eResCatnipEmoji\x12&\n" +
"\x04Code\x18\x01 \x01(\x0e2\x12.tutorial.RES_CODER\x04Code\x12\x10\n" +
"\x03Msg\x18\x02 \x01(\tR\x03Msg\"2\n" +
"\x03Msg\x18\x02 \x01(\tR\x03Msg\x12\x18\n" +
"\aEmojiId\x18\x03 \x01(\x05R\aEmojiId\x12\x0e\n" +
"\x02Id\x18\x04 \x01(\x05R\x02Id\"2\n" +
"\bAdminReq\x12\x12\n" +
"\x04Func\x18\x01 \x01(\tR\x04Func\x12\x12\n" +
"\x04Info\x18\x02 \x01(\fR\x04Info\"2\n" +