【猫草大作战】-接口协议优化
This commit is contained in:
parent
f6a43e8a21
commit
af72af6ec4
@ -5472,6 +5472,7 @@ func ReqCatnipMultiply(player *Player, buf []byte) error {
|
||||
player.PlayMod.save()
|
||||
player.PushClientRes(&msg.ResCatnipMultiply{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
Multiply: req.Multiply,
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -26568,6 +26568,7 @@ type ResCatnipMultiply 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"`
|
||||
Multiply int32 `protobuf:"varint,3,opt,name=Multiply,proto3" json:"Multiply,omitempty"` // 倍数
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -26616,6 +26617,13 @@ func (x *ResCatnipMultiply) GetMsg() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ResCatnipMultiply) GetMultiply() int32 {
|
||||
if x != nil {
|
||||
return x.Multiply
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 游戏转盘
|
||||
type ReqCatnipPlay struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
@ -29422,10 +29430,11 @@ const file_proto_Gameapi_proto_rawDesc = "" +
|
||||
"\x03Msg\x18\x02 \x01(\tR\x03Msg\x12\x10\n" +
|
||||
"\x03Uid\x18\x03 \x01(\x03R\x03Uid\"/\n" +
|
||||
"\x11ReqCatnipMultiply\x12\x1a\n" +
|
||||
"\bMultiply\x18\x01 \x01(\x05R\bMultiply\"M\n" +
|
||||
"\bMultiply\x18\x01 \x01(\x05R\bMultiply\"i\n" +
|
||||
"\x11ResCatnipMultiply\x12&\n" +
|
||||
"\x04Code\x18\x01 \x01(\x0e2\x12.tutorial.RES_CODER\x04Code\x12\x10\n" +
|
||||
"\x03Msg\x18\x02 \x01(\tR\x03Msg\"\x1f\n" +
|
||||
"\x03Msg\x18\x02 \x01(\tR\x03Msg\x12\x1a\n" +
|
||||
"\bMultiply\x18\x03 \x01(\x05R\bMultiply\"\x1f\n" +
|
||||
"\rReqCatnipPlay\x12\x0e\n" +
|
||||
"\x02Id\x18\x01 \x01(\x05R\x02Id\"Y\n" +
|
||||
"\rResCatnipPlay\x12&\n" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user