Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
7219bdcb14
20
modules/capturesheep/api.go
Normal file
20
modules/capturesheep/api.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package capturesheep
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/lego/base"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
)
|
||||||
|
|
||||||
|
type apiComp struct {
|
||||||
|
modules.MCompGate
|
||||||
|
service base.IRPCXService
|
||||||
|
module *CaptureSheep
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
_ = this.MCompGate.Init(service, module, comp, options)
|
||||||
|
this.service = service.(base.IRPCXService)
|
||||||
|
this.module = module.(*CaptureSheep)
|
||||||
|
return
|
||||||
|
}
|
64
modules/capturesheep/api_info.go
Normal file
64
modules/capturesheep/api_info.go
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
package capturesheep
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
)
|
||||||
|
|
||||||
|
// 参数校验
|
||||||
|
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.CapturesheepInfoReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// /获取自己的排行榜信息
|
||||||
|
func (this *apiComp) Info(session comm.IUserSession, req *pb.CapturesheepInfoReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBCaptureSheep
|
||||||
|
user *pb.DBUser
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
|
||||||
|
if errdata = this.InfoCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
user = this.module.ModuleUser.GetUser(session.GetUserId())
|
||||||
|
if user == nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if info, err = this.module.modelCaptureSheep.queryInfo(session.GetUserId()); err != nil && err != mgo.MongodbNil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
info.Lv = user.Lv
|
||||||
|
info.Name = user.Name
|
||||||
|
info.Sex = user.Gender
|
||||||
|
info.Skin = user.CurSkin
|
||||||
|
if err = this.module.modelCaptureSheep.Change(session.GetUserId(), map[string]interface{}{
|
||||||
|
"name": info.Name,
|
||||||
|
"lv": info.Lv,
|
||||||
|
"sex": info.Sex,
|
||||||
|
"skin": info.Skin,
|
||||||
|
}); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
session.SendMsg(string(this.module.GetType()), "info", &pb.CapturesheepInfoResp{Info: info})
|
||||||
|
return
|
||||||
|
}
|
59
modules/capturesheep/api_matche.go
Normal file
59
modules/capturesheep/api_matche.go
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
package capturesheep
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
)
|
||||||
|
|
||||||
|
//参数校验
|
||||||
|
func (this *apiComp) MatcheCheck(session comm.IUserSession, req *pb.CapturesheepMatcheReq) (errdata *pb.ErrorData) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
///匹配
|
||||||
|
func (this *apiComp) Matche(session comm.IUserSession, req *pb.CapturesheepMatcheReq) (errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
info *pb.DBCaptureSheep
|
||||||
|
active *cfg.GameArenaActiveRewardData
|
||||||
|
players []*pb.DBCaptureSheep
|
||||||
|
ai []*pb.DBCaptureSheep
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if errdata = this.MatcheCheck(session, req); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if info, err = this.module.modelCaptureSheep.queryInfo(session.GetUserId()); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if players, err = this.module.modelCaptureSheep.matchePlayer(info.Uid, info.Dan, active.HumanNum); err != nil && err != mgo.MongodbNil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if len(players) < 5 {
|
||||||
|
num := 5 - len(players)
|
||||||
|
if ai, err = this.module.modelCaptureSheep.matcheAI(info.Dan, int32(num)); err != nil && err != mgo.MongodbNil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_DBError,
|
||||||
|
Title: pb.ErrorCode_DBError.ToString(),
|
||||||
|
Message: err.Error(),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
players = append(players, ai...)
|
||||||
|
}
|
||||||
|
session.SendMsg(string(this.module.GetType()), "matche", &pb.CapturesheepMatcheResp{})
|
||||||
|
return
|
||||||
|
}
|
25
modules/capturesheep/configure.go
Normal file
25
modules/capturesheep/configure.go
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package capturesheep
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
game_arenarobot = "game_arenarobot.json" //ai配置表
|
||||||
|
)
|
||||||
|
|
||||||
|
type configureComp struct {
|
||||||
|
modules.MCompConfigure
|
||||||
|
module *CaptureSheep
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.MCompConfigure.Init(service, module, comp, options)
|
||||||
|
this.module = module.(*CaptureSheep)
|
||||||
|
err = this.LoadMultiConfigure(map[string]interface{}{
|
||||||
|
game_arenarobot: cfg.NewGameArenaRobot,
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
108
modules/capturesheep/modelCaptureSheep.go
Normal file
108
modules/capturesheep/modelCaptureSheep.go
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
package capturesheep
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/lego/sys/mgo"
|
||||||
|
"go_dreamfactory/lego/utils/container/id"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
cfg "go_dreamfactory/sys/configure/structs"
|
||||||
|
"math/rand"
|
||||||
|
|
||||||
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
|
"go.mongodb.org/mongo-driver/mongo/options"
|
||||||
|
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ModelCaptureSheep struct {
|
||||||
|
modules.MCompModel
|
||||||
|
module *CaptureSheep
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *ModelCaptureSheep) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.MCompModel.Init(service, module, comp, options)
|
||||||
|
this.TableName = comm.TableWeeltask
|
||||||
|
this.module = module.(*CaptureSheep)
|
||||||
|
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||||
|
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户装备数据
|
||||||
|
// 获取用户全部的埋点数据
|
||||||
|
func (this *ModelCaptureSheep) queryInfo(uid string) (results *pb.DBCaptureSheep, err error) {
|
||||||
|
results = &pb.DBCaptureSheep{}
|
||||||
|
if err = this.Get(uid, results); err != nil && err != mgo.MongodbNil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if err == mgo.MongodbNil {
|
||||||
|
results = &pb.DBCaptureSheep{
|
||||||
|
Uid: uid,
|
||||||
|
Integral: 1,
|
||||||
|
}
|
||||||
|
err = this.Add(uid, results)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取目标去陪数据
|
||||||
|
func (this *ModelCaptureSheep) matchePlayer(uid string, dan, num int32) (results []*pb.DBCaptureSheep, err error) {
|
||||||
|
var (
|
||||||
|
cursor *mongo.Cursor
|
||||||
|
)
|
||||||
|
results = make([]*pb.DBCaptureSheep, 0)
|
||||||
|
port := []float64{float64(dan), float64(rand.Int31n(100)) / 1000.0}
|
||||||
|
if cursor, err = this.DBModel.DB.Find(comm.TableArena, bson.M{
|
||||||
|
"isdef": true,
|
||||||
|
"uid": bson.M{"$ne": uid},
|
||||||
|
"dan": dan,
|
||||||
|
"loc": bson.M{
|
||||||
|
"$near": bson.M{
|
||||||
|
"$geometry": bson.M{"type": "Point", "coordinates": port},
|
||||||
|
"$maxDistance": 100000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, options.Find().SetSkip(0).SetLimit(int64(num))); err != nil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
for cursor.Next(context.Background()) {
|
||||||
|
temp := &pb.DBCaptureSheep{}
|
||||||
|
if err = cursor.Decode(temp); err != nil {
|
||||||
|
this.module.Errorln(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
results = append(results, temp)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// 匹配机器人
|
||||||
|
func (this *ModelCaptureSheep) matcheAI(dan, num int32) (results []*pb.DBCaptureSheep, err error) {
|
||||||
|
var (
|
||||||
|
robots []*cfg.GameRobotData
|
||||||
|
)
|
||||||
|
results = make([]*pb.DBCaptureSheep, num)
|
||||||
|
if robots, err = this.module.ModuleTools.RandRobotConfig(num); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for i, v := range robots {
|
||||||
|
results[i] = &pb.DBCaptureSheep{
|
||||||
|
Uid: fmt.Sprintf("ai_%s", id.NewXId()),
|
||||||
|
Name: v.Name,
|
||||||
|
Lv: v.Lvshow,
|
||||||
|
Sex: v.Sex,
|
||||||
|
Skin: v.Showid,
|
||||||
|
Dan: dan,
|
||||||
|
Isai: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
53
modules/capturesheep/module.go
Normal file
53
modules/capturesheep/module.go
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
package capturesheep
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
模块名:周长任务
|
||||||
|
描述:周长任务
|
||||||
|
开发:李伟
|
||||||
|
*/
|
||||||
|
type CaptureSheep struct {
|
||||||
|
modules.ModuleBase
|
||||||
|
service core.IService
|
||||||
|
api *apiComp
|
||||||
|
configure *configureComp
|
||||||
|
modelCaptureSheep *ModelCaptureSheep
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewModule() core.IModule {
|
||||||
|
return &CaptureSheep{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *CaptureSheep) GetType() core.M_Modules {
|
||||||
|
return comm.ModuleWeektask
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *CaptureSheep) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||||
|
err = this.ModuleBase.Init(service, module, options)
|
||||||
|
this.service = service
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *CaptureSheep) Start() (err error) {
|
||||||
|
err = this.ModuleBase.Start()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *CaptureSheep) OnInstallComp() {
|
||||||
|
this.ModuleBase.OnInstallComp()
|
||||||
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||||
|
this.modelCaptureSheep = this.RegisterComp(new(ModelCaptureSheep)).(*ModelCaptureSheep)
|
||||||
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询每日红点信息
|
||||||
|
func (this *CaptureSheep) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (reddot map[comm.ReddotType]*pb.ReddotItem) {
|
||||||
|
return
|
||||||
|
}
|
@ -356,6 +356,10 @@ func (this *modelEquipmentComp) newEquipment(uid string, conf *cfg.GameEquipData
|
|||||||
if equipatt, err = this.module.configure.getEquipAttribute(sattr[v].Attrkey); err != nil {
|
if equipatt, err = this.module.configure.getEquipAttribute(sattr[v].Attrkey); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if equipatt.SkillId == 0 {
|
||||||
|
err = fmt.Errorf("equipatt:%s skill is 0", sattr[v].Attrkey)
|
||||||
|
return
|
||||||
|
}
|
||||||
equipment.Adverbskill = append(equipment.Adverbskill, &pb.EquipmentSkillEntry{
|
equipment.Adverbskill = append(equipment.Adverbskill, &pb.EquipmentSkillEntry{
|
||||||
Id: sattr[v].Key,
|
Id: sattr[v].Key,
|
||||||
Libraryid: sattr[v].Libraryid,
|
Libraryid: sattr[v].Libraryid,
|
||||||
@ -421,6 +425,10 @@ func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equ
|
|||||||
if equipatt, err = this.module.configure.getEquipAttribute(sattr[index].Attrkey); err != nil {
|
if equipatt, err = this.module.configure.getEquipAttribute(sattr[index].Attrkey); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if equipatt.SkillId == 0 {
|
||||||
|
err = fmt.Errorf("equipatt:%s skill is 0", sattr[index].Attrkey)
|
||||||
|
return
|
||||||
|
}
|
||||||
equipment.Adverbskill = append(equipment.Adverbskill, &pb.EquipmentSkillEntry{
|
equipment.Adverbskill = append(equipment.Adverbskill, &pb.EquipmentSkillEntry{
|
||||||
Id: sattr[index].Key,
|
Id: sattr[index].Key,
|
||||||
Libraryid: sattr[index].Libraryid,
|
Libraryid: sattr[index].Libraryid,
|
||||||
@ -537,6 +545,10 @@ func (this *modelEquipmentComp) newMaxEquipment(uid string, conf *cfg.GameEquipD
|
|||||||
if equipatt, err = this.module.configure.getEquipAttribute(sattr[v].Attrkey); err != nil {
|
if equipatt, err = this.module.configure.getEquipAttribute(sattr[v].Attrkey); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if equipatt.SkillId == 0 {
|
||||||
|
err = fmt.Errorf("equipatt:%s skill is 0", sattr[v].Attrkey)
|
||||||
|
return
|
||||||
|
}
|
||||||
equipment.Adverbskill = append(equipment.Adverbskill, &pb.EquipmentSkillEntry{
|
equipment.Adverbskill = append(equipment.Adverbskill, &pb.EquipmentSkillEntry{
|
||||||
Id: sattr[v].Key,
|
Id: sattr[v].Key,
|
||||||
Libraryid: sattr[v].Libraryid,
|
Libraryid: sattr[v].Libraryid,
|
||||||
|
236
pb/capturesheep_db.pb.go
Normal file
236
pb/capturesheep_db.pb.go
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: capturesheep/capturesheep_db.proto
|
||||||
|
|
||||||
|
package pb
|
||||||
|
|
||||||
|
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 DBCaptureSheep struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
|
||||||
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
|
||||||
|
Lv int32 `protobuf:"varint,4,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级
|
||||||
|
Sex int32 `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"` //性别
|
||||||
|
Skin string `protobuf:"bytes,6,opt,name=skin,proto3" json:"skin"` //时装
|
||||||
|
Dan int32 `protobuf:"varint,7,opt,name=dan,proto3" json:"dan"` //段位
|
||||||
|
Integral int32 `protobuf:"varint,8,opt,name=integral,proto3" json:"integral"` //当前积分
|
||||||
|
Rank int32 `protobuf:"varint,9,opt,name=rank,proto3" json:"rank"` //排名
|
||||||
|
Isai bool `protobuf:"varint,11,opt,name=isai,proto3" json:"isai"` //是否是ai
|
||||||
|
Mformatid int32 `protobuf:"varint,12,opt,name=mformatid,proto3" json:"mformatid"` // AIId
|
||||||
|
Loc []float64 `protobuf:"fixed64,13,rep,packed,name=loc,proto3" json:"loc"` //地图索引 匹配系统使用
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) Reset() {
|
||||||
|
*x = DBCaptureSheep{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_capturesheep_capturesheep_db_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBCaptureSheep) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_capturesheep_capturesheep_db_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 DBCaptureSheep.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBCaptureSheep) Descriptor() ([]byte, []int) {
|
||||||
|
return file_capturesheep_capturesheep_db_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetLv() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Lv
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetSex() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Sex
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetSkin() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Skin
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetDan() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Dan
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetIntegral() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Integral
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetRank() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Rank
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetIsai() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Isai
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetMformatid() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Mformatid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBCaptureSheep) GetLoc() []float64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Loc
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_capturesheep_capturesheep_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_capturesheep_capturesheep_db_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x22, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x2f, 0x63,
|
||||||
|
0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x5f, 0x64, 0x62, 0x2e, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x43, 0x61, 0x70, 0x74, 0x75,
|
||||||
|
0x72, 0x65, 0x53, 0x68, 0x65, 0x65, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
||||||
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a,
|
||||||
|
0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a,
|
||||||
|
0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12,
|
||||||
|
0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73,
|
||||||
|
0x6b, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05,
|
||||||
|
0x52, 0x03, 0x64, 0x61, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||||
|
0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||||
|
0x6c, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
|
0x04, 0x72, 0x61, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x61, 0x69, 0x18, 0x0b, 0x20,
|
||||||
|
0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x61, 0x69, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x66, 0x6f,
|
||||||
|
0x72, 0x6d, 0x61, 0x74, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x66,
|
||||||
|
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x63, 0x18, 0x0d,
|
||||||
|
0x20, 0x03, 0x28, 0x01, 0x52, 0x03, 0x6c, 0x6f, 0x63, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
|
||||||
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_capturesheep_capturesheep_db_proto_rawDescOnce sync.Once
|
||||||
|
file_capturesheep_capturesheep_db_proto_rawDescData = file_capturesheep_capturesheep_db_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_capturesheep_capturesheep_db_proto_rawDescGZIP() []byte {
|
||||||
|
file_capturesheep_capturesheep_db_proto_rawDescOnce.Do(func() {
|
||||||
|
file_capturesheep_capturesheep_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_capturesheep_capturesheep_db_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_capturesheep_capturesheep_db_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_capturesheep_capturesheep_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||||
|
var file_capturesheep_capturesheep_db_proto_goTypes = []interface{}{
|
||||||
|
(*DBCaptureSheep)(nil), // 0: DBCaptureSheep
|
||||||
|
}
|
||||||
|
var file_capturesheep_capturesheep_db_proto_depIdxs = []int32{
|
||||||
|
0, // [0:0] is the sub-list for method output_type
|
||||||
|
0, // [0:0] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_capturesheep_capturesheep_db_proto_init() }
|
||||||
|
func file_capturesheep_capturesheep_db_proto_init() {
|
||||||
|
if File_capturesheep_capturesheep_db_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_capturesheep_capturesheep_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBCaptureSheep); 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_capturesheep_capturesheep_db_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 1,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_capturesheep_capturesheep_db_proto_goTypes,
|
||||||
|
DependencyIndexes: file_capturesheep_capturesheep_db_proto_depIdxs,
|
||||||
|
MessageInfos: file_capturesheep_capturesheep_db_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_capturesheep_capturesheep_db_proto = out.File
|
||||||
|
file_capturesheep_capturesheep_db_proto_rawDesc = nil
|
||||||
|
file_capturesheep_capturesheep_db_proto_goTypes = nil
|
||||||
|
file_capturesheep_capturesheep_db_proto_depIdxs = nil
|
||||||
|
}
|
333
pb/capturesheep_msg.pb.go
Normal file
333
pb/capturesheep_msg.pb.go
Normal file
@ -0,0 +1,333 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: capturesheep/capturesheep_msg.proto
|
||||||
|
|
||||||
|
package pb
|
||||||
|
|
||||||
|
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 CapturesheepInfoReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoReq) Reset() {
|
||||||
|
*x = CapturesheepInfoReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*CapturesheepInfoReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_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 CapturesheepInfoReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*CapturesheepInfoReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_capturesheep_capturesheep_msg_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
//竞技场信息 回应
|
||||||
|
type CapturesheepInfoResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Info *DBCaptureSheep `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoResp) Reset() {
|
||||||
|
*x = CapturesheepInfoResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*CapturesheepInfoResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_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 CapturesheepInfoResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*CapturesheepInfoResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_capturesheep_capturesheep_msg_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepInfoResp) GetInfo() *DBCaptureSheep {
|
||||||
|
if x != nil {
|
||||||
|
return x.Info
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type CapturesheepMatcheReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheReq) Reset() {
|
||||||
|
*x = CapturesheepMatcheReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*CapturesheepMatcheReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_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 CapturesheepMatcheReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*CapturesheepMatcheReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_capturesheep_capturesheep_msg_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
//竞技场信息 回应
|
||||||
|
type CapturesheepMatcheResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Red []*DBCaptureSheep `protobuf:"bytes,1,rep,name=red,proto3" json:"red"`
|
||||||
|
Blue []*DBCaptureSheep `protobuf:"bytes,2,rep,name=blue,proto3" json:"blue"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheResp) Reset() {
|
||||||
|
*x = CapturesheepMatcheResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*CapturesheepMatcheResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_capturesheep_capturesheep_msg_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 CapturesheepMatcheResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*CapturesheepMatcheResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_capturesheep_capturesheep_msg_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheResp) GetRed() []*DBCaptureSheep {
|
||||||
|
if x != nil {
|
||||||
|
return x.Red
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CapturesheepMatcheResp) GetBlue() []*DBCaptureSheep {
|
||||||
|
if x != nil {
|
||||||
|
return x.Blue
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_capturesheep_capturesheep_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_capturesheep_capturesheep_msg_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x23, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x2f, 0x63,
|
||||||
|
0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68,
|
||||||
|
0x65, 0x65, 0x70, 0x2f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70,
|
||||||
|
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x61, 0x70,
|
||||||
|
0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
|
||||||
|
0x22, 0x3b, 0x0a, 0x14, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70,
|
||||||
|
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f,
|
||||||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x43, 0x61, 0x70, 0x74, 0x75,
|
||||||
|
0x72, 0x65, 0x53, 0x68, 0x65, 0x65, 0x70, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x17, 0x0a,
|
||||||
|
0x15, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x4d, 0x61, 0x74,
|
||||||
|
0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x22, 0x60, 0x0a, 0x16, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72,
|
||||||
|
0x65, 0x73, 0x68, 0x65, 0x65, 0x70, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x12, 0x21, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
||||||
|
0x44, 0x42, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x53, 0x68, 0x65, 0x65, 0x70, 0x52, 0x03,
|
||||||
|
0x72, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28,
|
||||||
|
0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x53, 0x68, 0x65,
|
||||||
|
0x65, 0x70, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||||
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_capturesheep_capturesheep_msg_proto_rawDescOnce sync.Once
|
||||||
|
file_capturesheep_capturesheep_msg_proto_rawDescData = file_capturesheep_capturesheep_msg_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_capturesheep_capturesheep_msg_proto_rawDescGZIP() []byte {
|
||||||
|
file_capturesheep_capturesheep_msg_proto_rawDescOnce.Do(func() {
|
||||||
|
file_capturesheep_capturesheep_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_capturesheep_capturesheep_msg_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_capturesheep_capturesheep_msg_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_capturesheep_capturesheep_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||||
|
var file_capturesheep_capturesheep_msg_proto_goTypes = []interface{}{
|
||||||
|
(*CapturesheepInfoReq)(nil), // 0: CapturesheepInfoReq
|
||||||
|
(*CapturesheepInfoResp)(nil), // 1: CapturesheepInfoResp
|
||||||
|
(*CapturesheepMatcheReq)(nil), // 2: CapturesheepMatcheReq
|
||||||
|
(*CapturesheepMatcheResp)(nil), // 3: CapturesheepMatcheResp
|
||||||
|
(*DBCaptureSheep)(nil), // 4: DBCaptureSheep
|
||||||
|
}
|
||||||
|
var file_capturesheep_capturesheep_msg_proto_depIdxs = []int32{
|
||||||
|
4, // 0: CapturesheepInfoResp.info:type_name -> DBCaptureSheep
|
||||||
|
4, // 1: CapturesheepMatcheResp.red:type_name -> DBCaptureSheep
|
||||||
|
4, // 2: CapturesheepMatcheResp.blue:type_name -> DBCaptureSheep
|
||||||
|
3, // [3:3] is the sub-list for method output_type
|
||||||
|
3, // [3:3] is the sub-list for method input_type
|
||||||
|
3, // [3:3] is the sub-list for extension type_name
|
||||||
|
3, // [3:3] is the sub-list for extension extendee
|
||||||
|
0, // [0:3] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_capturesheep_capturesheep_msg_proto_init() }
|
||||||
|
func file_capturesheep_capturesheep_msg_proto_init() {
|
||||||
|
if File_capturesheep_capturesheep_msg_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_capturesheep_capturesheep_db_proto_init()
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_capturesheep_capturesheep_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*CapturesheepInfoReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_capturesheep_capturesheep_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*CapturesheepInfoResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_capturesheep_capturesheep_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*CapturesheepMatcheReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_capturesheep_capturesheep_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*CapturesheepMatcheResp); 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_capturesheep_capturesheep_msg_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 4,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_capturesheep_capturesheep_msg_proto_goTypes,
|
||||||
|
DependencyIndexes: file_capturesheep_capturesheep_msg_proto_depIdxs,
|
||||||
|
MessageInfos: file_capturesheep_capturesheep_msg_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_capturesheep_capturesheep_msg_proto = out.File
|
||||||
|
file_capturesheep_capturesheep_msg_proto_rawDesc = nil
|
||||||
|
file_capturesheep_capturesheep_msg_proto_goTypes = nil
|
||||||
|
file_capturesheep_capturesheep_msg_proto_depIdxs = nil
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user