娃娃机
This commit is contained in:
parent
a4f739212c
commit
af6114e69b
Binary file not shown.
|
|
@ -5363,6 +5363,52 @@
|
||||||
"PlayerWaterRate": 100,
|
"PlayerWaterRate": 100,
|
||||||
"BetWaterRate": 100
|
"BetWaterRate": 100
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Id": 6080001,
|
||||||
|
"Name": "娃娃机",
|
||||||
|
"Title": "公共服",
|
||||||
|
"GameId": 608,
|
||||||
|
"GameRule": 60800,
|
||||||
|
"GameType": 1,
|
||||||
|
"SceneType": 1,
|
||||||
|
"Desc": "0",
|
||||||
|
"ShowType": 3,
|
||||||
|
"ShowId": 60800,
|
||||||
|
"BaseScore": 1000000,
|
||||||
|
"BetDec": "0",
|
||||||
|
"Ai": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"MaxChip": 100000000,
|
||||||
|
"OtherIntParams": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"Jackpot": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"RobotNumRng": [
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"RobotTakeCoin": [
|
||||||
|
80000,
|
||||||
|
500000
|
||||||
|
],
|
||||||
|
"RobotLimitCoin": [
|
||||||
|
1000000,
|
||||||
|
2000000
|
||||||
|
],
|
||||||
|
"BetLimit": 1000000,
|
||||||
|
"SameIpLimit": 1,
|
||||||
|
"GameDif": "608",
|
||||||
|
"GameClass": 1,
|
||||||
|
"PlatformName": "越南棋牌",
|
||||||
|
"MaxBetCoin": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"PlayerWaterRate": 100,
|
||||||
|
"BetWaterRate": 100
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Id": 3010001,
|
"Id": 3010001,
|
||||||
"Name": "财运神",
|
"Name": "财运神",
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -154,6 +154,12 @@
|
||||||
"GameId": 607,
|
"GameId": 607,
|
||||||
"GameDif": "607"
|
"GameDif": "607"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Id": 60800,
|
||||||
|
"Name": "娃娃机",
|
||||||
|
"GameId": 608,
|
||||||
|
"GameDif": "608"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Id": 30100,
|
"Id": 30100,
|
||||||
"Name": "财运神",
|
"Name": "财运神",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"GameName":"娃娃机",
|
||||||
|
"GameId":608,
|
||||||
|
"GameMode":[0],
|
||||||
|
"SceneType":[1],
|
||||||
|
"CanForceStart":false,
|
||||||
|
"MinPlayerCnt":1,
|
||||||
|
"DefaultPlayerCnt":1,
|
||||||
|
"MaxIndex":0,
|
||||||
|
"TimeFreeStart":0,
|
||||||
|
"TimeFreeEnd":0,
|
||||||
|
"DependentPlayerCnt":true,
|
||||||
|
"EnterAfterStart":false,
|
||||||
|
"PerGameTakeCard":100,
|
||||||
|
"ViewLogCnt":-1,
|
||||||
|
"BetState":0,
|
||||||
|
"Params":[
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -6,8 +6,17 @@ import (
|
||||||
"mongo.games.com/goserver/core/netlib"
|
"mongo.games.com/goserver/core/netlib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var MachineMap = make(map[int]string)
|
||||||
|
|
||||||
func MSDollMachineList(session *netlib.Session, packetId int, data interface{}) error {
|
func MSDollMachineList(session *netlib.Session, packetId int, data interface{}) error {
|
||||||
logger.Logger.Tracef("TestHandler %v", data)
|
logger.Logger.Tracef("TestHandler %v", data)
|
||||||
|
MachineMap = make(map[int]string)
|
||||||
|
if msg, ok := data.(*machine.MSDollMachineList); ok {
|
||||||
|
for i, info := range msg.Data {
|
||||||
|
MachineMap[i+1] = info.VideoAddr
|
||||||
|
logger.Logger.Tracef("MachineMap[%v] = %v", i, info.VideoAddr)
|
||||||
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ type DB_FishOutMgrEx struct {
|
||||||
func (this *DB_FishOutMgrEx) InitFishAppear() {
|
func (this *DB_FishOutMgrEx) InitFishAppear() {
|
||||||
this.FishOutPool = make(map[int32]*AppearFish)
|
this.FishOutPool = make(map[int32]*AppearFish)
|
||||||
for _, v := range srvdata.PBDB_FishOutMgr.Datas.Arr {
|
for _, v := range srvdata.PBDB_FishOutMgr.Datas.Arr {
|
||||||
logger.Logger.Tracef("初始化房间出鱼列表 fishId = %v", v.Id)
|
//logger.Logger.Tracef("初始化房间出鱼列表 fishId = %v", v.Id)
|
||||||
this.FishOutPool[v.Id] = &AppearFish{
|
this.FishOutPool[v.Id] = &AppearFish{
|
||||||
FishId: v.Id,
|
FishId: v.Id,
|
||||||
Exp: v.Exp,
|
Exp: v.Exp,
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
package machine
|
|
||||||
|
|
||||||
import (
|
|
||||||
"mongo.games.com/game/protocol/machine"
|
|
||||||
"mongo.games.com/goserver/core/netlib"
|
|
||||||
)
|
|
||||||
|
|
||||||
func MSDollMachineListHandler(session *netlib.Session, packetId int, data interface{}) error {
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func init() {
|
|
||||||
netlib.Register(int(machine.DollMachinePacketID_PACKET_MSDollMachineList), &machine.MSDollMachineList{}, MSDollMachineListHandler)
|
|
||||||
}
|
|
||||||
|
|
@ -68,6 +68,8 @@ func SMDollMachineGrabHandler(session *netlib.Session, packetId int, data interf
|
||||||
machinedoll.Grab(conn)
|
machinedoll.Grab(conn)
|
||||||
} else if typeId == 3 {
|
} else if typeId == 3 {
|
||||||
//必中抓
|
//必中抓
|
||||||
|
machinedoll.SetPower(conn)
|
||||||
|
time.Sleep(200 * time.Millisecond)
|
||||||
machinedoll.Grab(conn)
|
machinedoll.Grab(conn)
|
||||||
}
|
}
|
||||||
//返回消息
|
//返回消息
|
||||||
|
|
@ -92,7 +94,7 @@ func SMGameLinkSucceedHandler(session *netlib.Session, packetId int, data interf
|
||||||
msg.Data = append(msg.Data, info)
|
msg.Data = append(msg.Data, info)
|
||||||
}
|
}
|
||||||
session.Send(int(machine.DollMachinePacketID_PACKET_MSDollMachineList), msg)
|
session.Send(int(machine.DollMachinePacketID_PACKET_MSDollMachineList), msg)
|
||||||
fmt.Printf("开始向游戏服务器发送娃娃机连接信息!\n")
|
fmt.Printf("开始向游戏服务器发送娃娃机连接信息!\n", msg)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,13 @@ func Grab(conn net.Conn) {
|
||||||
fmt.Println("Failed to send command to server:", err)
|
fmt.Println("Failed to send command to server:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 读取服务端的响应
|
||||||
|
buf := make([]byte, 1024)
|
||||||
|
_, err = conn.Read(buf)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println("Failed to read response from server:", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弱抓aa 05 01 50 06 00 52 dd
|
// 弱抓aa 05 01 50 06 00 52 dd
|
||||||
|
|
|
||||||
|
|
@ -37,16 +37,13 @@ const heartbeatInterval = 1
|
||||||
|
|
||||||
func (this *MachineManager) Init() {
|
func (this *MachineManager) Init() {
|
||||||
var serverAddrs []string
|
var serverAddrs []string
|
||||||
// 获取程序所在的绝对路径
|
|
||||||
programDir, err := os.Getwd()
|
programDir, err := os.Getwd()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error getting working directory:", err)
|
fmt.Println("Error getting working directory:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 构建配置文件的绝对路径
|
|
||||||
configFile := filepath.Join(programDir, "machineIPConfig.json")
|
configFile := filepath.Join(programDir, "machineIPConfig.json")
|
||||||
|
fmt.Println("构建配置文件的路径", configFile)
|
||||||
fileData, err := os.ReadFile(configFile)
|
fileData, err := os.ReadFile(configFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Logger.Error("Read robot account file error:", err)
|
logger.Logger.Error("Read robot account file error:", err)
|
||||||
|
|
@ -72,10 +69,10 @@ func (this *MachineManager) Init() {
|
||||||
fmt.Println("投币请按Q!!!!")
|
fmt.Println("投币请按Q!!!!")
|
||||||
fmt.Println("w向前s向后a向左d向右 j强力抓取k弱力抓取!")
|
fmt.Println("w向前s向后a向左d向右 j强力抓取k弱力抓取!")
|
||||||
// 监听 WASD 按键事件
|
// 监听 WASD 按键事件
|
||||||
//go listenKeyboardEvents(ConnMap[1])
|
/* go listenKeyboardEvents(ConnMap[1])
|
||||||
|
|
||||||
// 监听中断信号,等待用户退出
|
// 监听中断信号,等待用户退出
|
||||||
//waitForUserExit()
|
waitForUserExit()*/
|
||||||
}
|
}
|
||||||
func (this *MachineManager) StartHeartbeat(id int, conn *net.Conn, addr string) {
|
func (this *MachineManager) StartHeartbeat(id int, conn *net.Conn, addr string) {
|
||||||
// 定期发送心跳包
|
// 定期发送心跳包
|
||||||
|
|
@ -195,6 +192,8 @@ func listenKeyboardEvents(conn net.Conn) {
|
||||||
case "j":
|
case "j":
|
||||||
Grab(conn)
|
Grab(conn)
|
||||||
case "J":
|
case "J":
|
||||||
|
SetPower(conn)
|
||||||
|
time.Sleep(200 * time.Millisecond)
|
||||||
Grab(conn)
|
Grab(conn)
|
||||||
|
|
||||||
case "k":
|
case "k":
|
||||||
|
|
@ -209,7 +208,6 @@ func listenKeyboardEvents(conn net.Conn) {
|
||||||
BackwardStop(conn)
|
BackwardStop(conn)
|
||||||
case "Q":
|
case "Q":
|
||||||
Coin(conn)
|
Coin(conn)
|
||||||
|
|
||||||
Backward(conn)
|
Backward(conn)
|
||||||
time.Sleep(150 * time.Millisecond)
|
time.Sleep(150 * time.Millisecond)
|
||||||
BackwardStop(conn)
|
BackwardStop(conn)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,537 @@
|
||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.27.1-devel
|
||||||
|
// protoc v3.19.4
|
||||||
|
// source: dollmachine.proto
|
||||||
|
|
||||||
|
package dollmachine
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
//S-GAME M-娃娃机主机
|
||||||
|
//娃娃机协议
|
||||||
|
type DollMachinePacketID int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
DollMachinePacketID_PACKET_SMDollMachineZero DollMachinePacketID = 0
|
||||||
|
DollMachinePacketID_PACKET_SMDollMachineMove DollMachinePacketID = 3001
|
||||||
|
DollMachinePacketID_PACKET_SMDollMachineGrab DollMachinePacketID = 3002
|
||||||
|
DollMachinePacketID_PACKET_MSDollMachineGrab DollMachinePacketID = 3003
|
||||||
|
DollMachinePacketID_PACKET_MSDollMachineList DollMachinePacketID = 3004
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for DollMachinePacketID.
|
||||||
|
var (
|
||||||
|
DollMachinePacketID_name = map[int32]string{
|
||||||
|
0: "PACKET_SMDollMachineZero",
|
||||||
|
3001: "PACKET_SMDollMachineMove",
|
||||||
|
3002: "PACKET_SMDollMachineGrab",
|
||||||
|
3003: "PACKET_MSDollMachineGrab",
|
||||||
|
3004: "PACKET_MSDollMachineList",
|
||||||
|
}
|
||||||
|
DollMachinePacketID_value = map[string]int32{
|
||||||
|
"PACKET_SMDollMachineZero": 0,
|
||||||
|
"PACKET_SMDollMachineMove": 3001,
|
||||||
|
"PACKET_SMDollMachineGrab": 3002,
|
||||||
|
"PACKET_MSDollMachineGrab": 3003,
|
||||||
|
"PACKET_MSDollMachineList": 3004,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x DollMachinePacketID) Enum() *DollMachinePacketID {
|
||||||
|
p := new(DollMachinePacketID)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x DollMachinePacketID) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (DollMachinePacketID) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_dollmachine_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (DollMachinePacketID) Type() protoreflect.EnumType {
|
||||||
|
return &file_dollmachine_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x DollMachinePacketID) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DollMachinePacketID.Descriptor instead.
|
||||||
|
func (DollMachinePacketID) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_dollmachine_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
//移动
|
||||||
|
type SMDollMachineMove struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Snid int32 `protobuf:"varint,1,opt,name=Snid,proto3" json:"Snid,omitempty"`
|
||||||
|
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` //娃娃机标识
|
||||||
|
Direction int32 `protobuf:"varint,3,opt,name=Direction,proto3" json:"Direction,omitempty"` // 1-前 2-后 3-左 4-右
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineMove) Reset() {
|
||||||
|
*x = SMDollMachineMove{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineMove) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SMDollMachineMove) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SMDollMachineMove) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[0]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SMDollMachineMove.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SMDollMachineMove) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dollmachine_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineMove) GetSnid() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Snid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineMove) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineMove) GetDirection() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Direction
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
//下抓
|
||||||
|
type SMDollMachineGrab struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
TypeId int32 `protobuf:"varint,1,opt,name=TypeId,proto3" json:"TypeId,omitempty"` //1-弱力抓 2 -强力抓 3-必出抓
|
||||||
|
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` //娃娃机标识
|
||||||
|
Snid int32 `protobuf:"varint,3,opt,name=Snid,proto3" json:"Snid,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineGrab) Reset() {
|
||||||
|
*x = SMDollMachineGrab{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineGrab) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SMDollMachineGrab) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SMDollMachineGrab) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SMDollMachineGrab.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SMDollMachineGrab) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dollmachine_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineGrab) GetTypeId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.TypeId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineGrab) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SMDollMachineGrab) GetSnid() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Snid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
//返回下抓结果
|
||||||
|
type MSDollMachineGrab struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Snid int32 `protobuf:"varint,1,opt,name=Snid,proto3" json:"Snid,omitempty"`
|
||||||
|
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` //娃娃机标识
|
||||||
|
Result int32 `protobuf:"varint,3,opt,name=Result,proto3" json:"Result,omitempty"` //1-中奖 其他未中奖
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineGrab) Reset() {
|
||||||
|
*x = MSDollMachineGrab{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineGrab) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MSDollMachineGrab) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MSDollMachineGrab) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MSDollMachineGrab.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MSDollMachineGrab) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dollmachine_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineGrab) GetSnid() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Snid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineGrab) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineGrab) GetResult() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
//返回所有娃娃机连接
|
||||||
|
type MSDollMachineList struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Data []*DollMachine `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineList) Reset() {
|
||||||
|
*x = MSDollMachineList{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineList) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MSDollMachineList) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MSDollMachineList) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MSDollMachineList.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MSDollMachineList) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dollmachine_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MSDollMachineList) GetData() []*DollMachine {
|
||||||
|
if x != nil {
|
||||||
|
return x.Data
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type DollMachine struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
|
||||||
|
Status int32 `protobuf:"varint,2,opt,name=Status,proto3" json:"Status,omitempty"` //1-空闲 2-无法使用
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DollMachine) Reset() {
|
||||||
|
*x = DollMachine{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DollMachine) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DollMachine) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DollMachine) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dollmachine_proto_msgTypes[4]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use DollMachine.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DollMachine) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dollmachine_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DollMachine) GetId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DollMachine) GetStatus() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Status
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_dollmachine_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_dollmachine_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x11, 0x64, 0x6f, 0x6c, 0x6c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x64, 0x6f, 0x6c, 0x6c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
|
||||||
|
0x22, 0x55, 0x0a, 0x11, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
|
||||||
|
0x65, 0x4d, 0x6f, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18,
|
||||||
|
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x69, 0x72,
|
||||||
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x44, 0x69,
|
||||||
|
0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x11, 0x53, 0x4d, 0x44, 0x6f, 0x6c,
|
||||||
|
0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x47, 0x72, 0x61, 0x62, 0x12, 0x16, 0x0a, 0x06,
|
||||||
|
0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x54, 0x79,
|
||||||
|
0x70, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||||
|
0x52, 0x02, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
|
||||||
|
0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x22, 0x4f, 0x0a, 0x11, 0x4d, 0x53, 0x44, 0x6f,
|
||||||
|
0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x47, 0x72, 0x61, 0x62, 0x12, 0x12, 0x0a,
|
||||||
|
0x04, 0x53, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x69,
|
||||||
|
0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49,
|
||||||
|
0x64, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||||
|
0x05, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x41, 0x0a, 0x11, 0x4d, 0x53, 0x44,
|
||||||
|
0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c,
|
||||||
|
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64,
|
||||||
|
0x6f, 0x6c, 0x6c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x4d,
|
||||||
|
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x35, 0x0a, 0x0b,
|
||||||
|
0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49,
|
||||||
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x53,
|
||||||
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x53, 0x74, 0x61,
|
||||||
|
0x74, 0x75, 0x73, 0x2a, 0xaf, 0x01, 0x0a, 0x13, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68,
|
||||||
|
0x69, 0x6e, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x18, 0x50,
|
||||||
|
0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68,
|
||||||
|
0x69, 0x6e, 0x65, 0x5a, 0x65, 0x72, 0x6f, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x18, 0x50, 0x41, 0x43,
|
||||||
|
0x4b, 0x45, 0x54, 0x5f, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
|
||||||
|
0x65, 0x4d, 0x6f, 0x76, 0x65, 0x10, 0xb9, 0x17, 0x12, 0x1d, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b,
|
||||||
|
0x45, 0x54, 0x5f, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
|
||||||
|
0x47, 0x72, 0x61, 0x62, 0x10, 0xba, 0x17, 0x12, 0x1d, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
||||||
|
0x54, 0x5f, 0x4d, 0x53, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x47,
|
||||||
|
0x72, 0x61, 0x62, 0x10, 0xbb, 0x17, 0x12, 0x1d, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54,
|
||||||
|
0x5f, 0x4d, 0x53, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c, 0x69,
|
||||||
|
0x73, 0x74, 0x10, 0xbc, 0x17, 0x42, 0x2b, 0x5a, 0x29, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67,
|
||||||
|
0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x64, 0x6f, 0x6c, 0x6c, 0x6d, 0x61, 0x63, 0x68, 0x69,
|
||||||
|
0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_dollmachine_proto_rawDescOnce sync.Once
|
||||||
|
file_dollmachine_proto_rawDescData = file_dollmachine_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_dollmachine_proto_rawDescGZIP() []byte {
|
||||||
|
file_dollmachine_proto_rawDescOnce.Do(func() {
|
||||||
|
file_dollmachine_proto_rawDescData = protoimpl.X.CompressGZIP(file_dollmachine_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_dollmachine_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_dollmachine_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_dollmachine_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||||
|
var file_dollmachine_proto_goTypes = []interface{}{
|
||||||
|
(DollMachinePacketID)(0), // 0: dollmachine.DollMachinePacketID
|
||||||
|
(*SMDollMachineMove)(nil), // 1: dollmachine.SMDollMachineMove
|
||||||
|
(*SMDollMachineGrab)(nil), // 2: dollmachine.SMDollMachineGrab
|
||||||
|
(*MSDollMachineGrab)(nil), // 3: dollmachine.MSDollMachineGrab
|
||||||
|
(*MSDollMachineList)(nil), // 4: dollmachine.MSDollMachineList
|
||||||
|
(*DollMachine)(nil), // 5: dollmachine.DollMachine
|
||||||
|
}
|
||||||
|
var file_dollmachine_proto_depIdxs = []int32{
|
||||||
|
5, // 0: dollmachine.MSDollMachineList.data:type_name -> dollmachine.DollMachine
|
||||||
|
1, // [1:1] is the sub-list for method output_type
|
||||||
|
1, // [1:1] is the sub-list for method input_type
|
||||||
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
|
1, // [1:1] is the sub-list for extension extendee
|
||||||
|
0, // [0:1] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_dollmachine_proto_init() }
|
||||||
|
func file_dollmachine_proto_init() {
|
||||||
|
if File_dollmachine_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_dollmachine_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SMDollMachineMove); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dollmachine_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*SMDollMachineGrab); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dollmachine_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MSDollMachineGrab); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dollmachine_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MSDollMachineList); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dollmachine_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DollMachine); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_dollmachine_proto_rawDesc,
|
||||||
|
NumEnums: 1,
|
||||||
|
NumMessages: 5,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_dollmachine_proto_goTypes,
|
||||||
|
DependencyIndexes: file_dollmachine_proto_depIdxs,
|
||||||
|
EnumInfos: file_dollmachine_proto_enumTypes,
|
||||||
|
MessageInfos: file_dollmachine_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_dollmachine_proto = out.File
|
||||||
|
file_dollmachine_proto_rawDesc = nil
|
||||||
|
file_dollmachine_proto_goTypes = nil
|
||||||
|
file_dollmachine_proto_depIdxs = nil
|
||||||
|
}
|
||||||
|
|
@ -1,27 +1,22 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package machine;
|
package dollmachine;
|
||||||
option go_package = "mongo.games.com/game/protocol/machine";
|
option go_package = "mongo.games.com/game/protocol/dollmachine";
|
||||||
|
|
||||||
//S-GAME M-娃娃机主机
|
//S-GAME M-娃娃机主机
|
||||||
|
|
||||||
//娃娃机协议
|
//娃娃机协议
|
||||||
enum DollMachinePacketID {
|
enum DollMachinePacketID {
|
||||||
PACKET_SMDollMachineZero = 0;
|
PACKET_SMDollMachineZero = 0;
|
||||||
PACKET_SMGameLinkSucceed = 20000;
|
PACKET_SMDollMachineMove = 3001;
|
||||||
PACKET_SMDollMachinePerate = 20001;
|
PACKET_SMDollMachineGrab = 3002;
|
||||||
PACKET_SMDollMachineGrab = 20002;
|
PACKET_MSDollMachineGrab = 3003;
|
||||||
PACKET_MSDollMachineGrab = 20003;
|
PACKET_MSDollMachineList = 3004;
|
||||||
PACKET_MSDollMachineList = 20004;
|
|
||||||
}
|
|
||||||
//通知链接成功
|
|
||||||
message SMGameLinkSucceed{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//操作
|
//移动
|
||||||
message SMDollMachineoPerate{
|
message SMDollMachineMove{
|
||||||
int32 Snid = 1;
|
int32 Snid = 1;
|
||||||
int32 Id = 2; //娃娃机标识
|
int32 Id = 2; //娃娃机标识
|
||||||
int32 Perate = 3; // 1-前 2-后 3-左 4-右 5-投币
|
int32 Direction = 3; // 1-前 2-后 3-左 4-右
|
||||||
}
|
}
|
||||||
|
|
||||||
//下抓
|
//下抓
|
||||||
|
|
@ -44,5 +39,5 @@ message MSDollMachineList{
|
||||||
}
|
}
|
||||||
message DollMachine{
|
message DollMachine{
|
||||||
int32 Id = 1;
|
int32 Id = 1;
|
||||||
string VideoAddr = 2;
|
int32 Status = 2; //1-空闲 2-无法使用
|
||||||
}
|
}
|
||||||
|
|
@ -1,594 +0,0 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1-devel
|
|
||||||
// protoc v3.19.4
|
|
||||||
// source: machine.proto
|
|
||||||
|
|
||||||
package machine
|
|
||||||
|
|
||||||
import (
|
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
||||||
reflect "reflect"
|
|
||||||
sync "sync"
|
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
// Verify that this generated code is sufficiently up-to-date.
|
|
||||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
||||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
||||||
)
|
|
||||||
|
|
||||||
//娃娃机协议
|
|
||||||
type DollMachinePacketID int32
|
|
||||||
|
|
||||||
const (
|
|
||||||
DollMachinePacketID_PACKET_SMDollMachineZero DollMachinePacketID = 0
|
|
||||||
DollMachinePacketID_PACKET_SMGameLinkSucceed DollMachinePacketID = 20000
|
|
||||||
DollMachinePacketID_PACKET_SMDollMachinePerate DollMachinePacketID = 20001
|
|
||||||
DollMachinePacketID_PACKET_SMDollMachineGrab DollMachinePacketID = 20002
|
|
||||||
DollMachinePacketID_PACKET_MSDollMachineGrab DollMachinePacketID = 20003
|
|
||||||
DollMachinePacketID_PACKET_MSDollMachineList DollMachinePacketID = 20004
|
|
||||||
)
|
|
||||||
|
|
||||||
// Enum value maps for DollMachinePacketID.
|
|
||||||
var (
|
|
||||||
DollMachinePacketID_name = map[int32]string{
|
|
||||||
0: "PACKET_SMDollMachineZero",
|
|
||||||
20000: "PACKET_SMGameLinkSucceed",
|
|
||||||
20001: "PACKET_SMDollMachinePerate",
|
|
||||||
20002: "PACKET_SMDollMachineGrab",
|
|
||||||
20003: "PACKET_MSDollMachineGrab",
|
|
||||||
20004: "PACKET_MSDollMachineList",
|
|
||||||
}
|
|
||||||
DollMachinePacketID_value = map[string]int32{
|
|
||||||
"PACKET_SMDollMachineZero": 0,
|
|
||||||
"PACKET_SMGameLinkSucceed": 20000,
|
|
||||||
"PACKET_SMDollMachinePerate": 20001,
|
|
||||||
"PACKET_SMDollMachineGrab": 20002,
|
|
||||||
"PACKET_MSDollMachineGrab": 20003,
|
|
||||||
"PACKET_MSDollMachineList": 20004,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
func (x DollMachinePacketID) Enum() *DollMachinePacketID {
|
|
||||||
p := new(DollMachinePacketID)
|
|
||||||
*p = x
|
|
||||||
return p
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x DollMachinePacketID) String() string {
|
|
||||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (DollMachinePacketID) Descriptor() protoreflect.EnumDescriptor {
|
|
||||||
return file_machine_proto_enumTypes[0].Descriptor()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (DollMachinePacketID) Type() protoreflect.EnumType {
|
|
||||||
return &file_machine_proto_enumTypes[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x DollMachinePacketID) Number() protoreflect.EnumNumber {
|
|
||||||
return protoreflect.EnumNumber(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DollMachinePacketID.Descriptor instead.
|
|
||||||
func (DollMachinePacketID) EnumDescriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
//通知链接成功
|
|
||||||
type SMGameLinkSucceed struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMGameLinkSucceed) Reset() {
|
|
||||||
*x = SMGameLinkSucceed{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_machine_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMGameLinkSucceed) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*SMGameLinkSucceed) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *SMGameLinkSucceed) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_machine_proto_msgTypes[0]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use SMGameLinkSucceed.ProtoReflect.Descriptor instead.
|
|
||||||
func (*SMGameLinkSucceed) Descriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
//操作
|
|
||||||
type SMDollMachineoPerate struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Snid int32 `protobuf:"varint,1,opt,name=Snid,proto3" json:"Snid,omitempty"`
|
|
||||||
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` //娃娃机标识
|
|
||||||
Perate int32 `protobuf:"varint,3,opt,name=Perate,proto3" json:"Perate,omitempty"` // 1-前 2-后 3-左 4-右 5-投币
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineoPerate) Reset() {
|
|
||||||
*x = SMDollMachineoPerate{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_machine_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineoPerate) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*SMDollMachineoPerate) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *SMDollMachineoPerate) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_machine_proto_msgTypes[1]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use SMDollMachineoPerate.ProtoReflect.Descriptor instead.
|
|
||||||
func (*SMDollMachineoPerate) Descriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineoPerate) GetSnid() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Snid
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineoPerate) GetId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineoPerate) GetPerate() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Perate
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
//下抓
|
|
||||||
type SMDollMachineGrab struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
TypeId int32 `protobuf:"varint,1,opt,name=TypeId,proto3" json:"TypeId,omitempty"` //1-弱力抓 2 -强力抓 3-必出抓
|
|
||||||
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` //娃娃机标识
|
|
||||||
Snid int32 `protobuf:"varint,3,opt,name=Snid,proto3" json:"Snid,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineGrab) Reset() {
|
|
||||||
*x = SMDollMachineGrab{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_machine_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineGrab) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*SMDollMachineGrab) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *SMDollMachineGrab) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_machine_proto_msgTypes[2]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use SMDollMachineGrab.ProtoReflect.Descriptor instead.
|
|
||||||
func (*SMDollMachineGrab) Descriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{2}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineGrab) GetTypeId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.TypeId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineGrab) GetId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SMDollMachineGrab) GetSnid() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Snid
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
//返回下抓结果
|
|
||||||
type MSDollMachineGrab struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Snid int32 `protobuf:"varint,1,opt,name=Snid,proto3" json:"Snid,omitempty"`
|
|
||||||
Id int32 `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"` //娃娃机标识
|
|
||||||
Result int32 `protobuf:"varint,3,opt,name=Result,proto3" json:"Result,omitempty"` //1-中奖 其他未中奖
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineGrab) Reset() {
|
|
||||||
*x = MSDollMachineGrab{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_machine_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineGrab) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MSDollMachineGrab) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MSDollMachineGrab) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_machine_proto_msgTypes[3]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use MSDollMachineGrab.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MSDollMachineGrab) Descriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{3}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineGrab) GetSnid() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Snid
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineGrab) GetId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineGrab) GetResult() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Result
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
//返回所有娃娃机连接
|
|
||||||
type MSDollMachineList struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Data []*DollMachine `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineList) Reset() {
|
|
||||||
*x = MSDollMachineList{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_machine_proto_msgTypes[4]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineList) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MSDollMachineList) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MSDollMachineList) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_machine_proto_msgTypes[4]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use MSDollMachineList.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MSDollMachineList) Descriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{4}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MSDollMachineList) GetData() []*DollMachine {
|
|
||||||
if x != nil {
|
|
||||||
return x.Data
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type DollMachine struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
|
|
||||||
VideoAddr string `protobuf:"bytes,2,opt,name=VideoAddr,proto3" json:"VideoAddr,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DollMachine) Reset() {
|
|
||||||
*x = DollMachine{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_machine_proto_msgTypes[5]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DollMachine) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DollMachine) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *DollMachine) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_machine_proto_msgTypes[5]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DollMachine.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DollMachine) Descriptor() ([]byte, []int) {
|
|
||||||
return file_machine_proto_rawDescGZIP(), []int{5}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DollMachine) GetId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DollMachine) GetVideoAddr() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.VideoAddr
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_machine_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_machine_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x0d, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
||||||
0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x4d, 0x47, 0x61,
|
|
||||||
0x6d, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x53, 0x75, 0x63, 0x63, 0x65, 0x65, 0x64, 0x22, 0x52, 0x0a,
|
|
||||||
0x14, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x6f, 0x50,
|
|
||||||
0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
||||||
0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18,
|
|
||||||
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x65, 0x72,
|
|
||||||
0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x50, 0x65, 0x72, 0x61, 0x74,
|
|
||||||
0x65, 0x22, 0x4f, 0x0a, 0x11, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69,
|
|
||||||
0x6e, 0x65, 0x47, 0x72, 0x61, 0x62, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x0e,
|
|
||||||
0x0a, 0x02, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x12,
|
|
||||||
0x0a, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e,
|
|
||||||
0x69, 0x64, 0x22, 0x4f, 0x0a, 0x11, 0x4d, 0x53, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68,
|
|
||||||
0x69, 0x6e, 0x65, 0x47, 0x72, 0x61, 0x62, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x18,
|
|
||||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x53, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x49,
|
|
||||||
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x52,
|
|
||||||
0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x52, 0x65, 0x73,
|
|
||||||
0x75, 0x6c, 0x74, 0x22, 0x3d, 0x0a, 0x11, 0x4d, 0x53, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63,
|
|
||||||
0x68, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
|
||||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
|
|
||||||
0x2e, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61,
|
|
||||||
0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0b, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
|
|
||||||
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49,
|
|
||||||
0x64, 0x12, 0x1c, 0x0a, 0x09, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x72, 0x18, 0x02,
|
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x72, 0x2a,
|
|
||||||
0xd5, 0x01, 0x0a, 0x13, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50,
|
|
||||||
0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
|
||||||
0x54, 0x5f, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5a,
|
|
||||||
0x65, 0x72, 0x6f, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f,
|
|
||||||
0x53, 0x4d, 0x47, 0x61, 0x6d, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x53, 0x75, 0x63, 0x63, 0x65, 0x65,
|
|
||||||
0x64, 0x10, 0xa0, 0x9c, 0x01, 0x12, 0x20, 0x0a, 0x1a, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f,
|
|
||||||
0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72,
|
|
||||||
0x61, 0x74, 0x65, 0x10, 0xa1, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
|
||||||
0x54, 0x5f, 0x53, 0x4d, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x47,
|
|
||||||
0x72, 0x61, 0x62, 0x10, 0xa2, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
|
||||||
0x54, 0x5f, 0x4d, 0x53, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x47,
|
|
||||||
0x72, 0x61, 0x62, 0x10, 0xa3, 0x9c, 0x01, 0x12, 0x1e, 0x0a, 0x18, 0x50, 0x41, 0x43, 0x4b, 0x45,
|
|
||||||
0x54, 0x5f, 0x4d, 0x53, 0x44, 0x6f, 0x6c, 0x6c, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4c,
|
|
||||||
0x69, 0x73, 0x74, 0x10, 0xa4, 0x9c, 0x01, 0x42, 0x27, 0x5a, 0x25, 0x6d, 0x6f, 0x6e, 0x67, 0x6f,
|
|
||||||
0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f,
|
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65,
|
|
||||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_machine_proto_rawDescOnce sync.Once
|
|
||||||
file_machine_proto_rawDescData = file_machine_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_machine_proto_rawDescGZIP() []byte {
|
|
||||||
file_machine_proto_rawDescOnce.Do(func() {
|
|
||||||
file_machine_proto_rawDescData = protoimpl.X.CompressGZIP(file_machine_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_machine_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_machine_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
||||||
var file_machine_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
||||||
var file_machine_proto_goTypes = []interface{}{
|
|
||||||
(DollMachinePacketID)(0), // 0: machine.DollMachinePacketID
|
|
||||||
(*SMGameLinkSucceed)(nil), // 1: machine.SMGameLinkSucceed
|
|
||||||
(*SMDollMachineoPerate)(nil), // 2: machine.SMDollMachineoPerate
|
|
||||||
(*SMDollMachineGrab)(nil), // 3: machine.SMDollMachineGrab
|
|
||||||
(*MSDollMachineGrab)(nil), // 4: machine.MSDollMachineGrab
|
|
||||||
(*MSDollMachineList)(nil), // 5: machine.MSDollMachineList
|
|
||||||
(*DollMachine)(nil), // 6: machine.DollMachine
|
|
||||||
}
|
|
||||||
var file_machine_proto_depIdxs = []int32{
|
|
||||||
6, // 0: machine.MSDollMachineList.data:type_name -> machine.DollMachine
|
|
||||||
1, // [1:1] is the sub-list for method output_type
|
|
||||||
1, // [1:1] is the sub-list for method input_type
|
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
|
||||||
1, // [1:1] is the sub-list for extension extendee
|
|
||||||
0, // [0:1] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_machine_proto_init() }
|
|
||||||
func file_machine_proto_init() {
|
|
||||||
if File_machine_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_machine_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*SMGameLinkSucceed); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_machine_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*SMDollMachineoPerate); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_machine_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*SMDollMachineGrab); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_machine_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MSDollMachineGrab); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_machine_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MSDollMachineList); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_machine_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DollMachine); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
type x struct{}
|
|
||||||
out := protoimpl.TypeBuilder{
|
|
||||||
File: protoimpl.DescBuilder{
|
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
||||||
RawDescriptor: file_machine_proto_rawDesc,
|
|
||||||
NumEnums: 1,
|
|
||||||
NumMessages: 6,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_machine_proto_goTypes,
|
|
||||||
DependencyIndexes: file_machine_proto_depIdxs,
|
|
||||||
EnumInfos: file_machine_proto_enumTypes,
|
|
||||||
MessageInfos: file_machine_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_machine_proto = out.File
|
|
||||||
file_machine_proto_rawDesc = nil
|
|
||||||
file_machine_proto_goTypes = nil
|
|
||||||
file_machine_proto_depIdxs = nil
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue