db数据实例化
This commit is contained in:
parent
93f7fd8c12
commit
fc9876d582
@ -145,7 +145,7 @@ func (this *apiComp) ChallengeRaceOver(session comm.IUserSession, req *pb.Pagoda
|
||||
// 数据写到跨服中
|
||||
if conn_, err := db.Cross(); err == nil {
|
||||
dbModel := db.NewDBModel(comm.TableRaceRecord, time.Hour, conn_)
|
||||
result := make([]*pb.DBPagodaRecord, 0)
|
||||
result := make([]*pb.DBRacePagodaRecord, 0)
|
||||
bRet := false
|
||||
dbModel.GetList(uid, &result)
|
||||
for _, v := range result {
|
||||
|
@ -1,389 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: dungeon/dungeon_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 RoomData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Event map[int32]bool `protobuf:"bytes,1,rep,name=event,proto3" json:"event" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //房间的事件信息 true 表示已完成
|
||||
CurRoomIndes int32 `protobuf:"varint,2,opt,name=curRoomIndes,proto3" json:"curRoomIndes"` // 当前房间索引 初始 0 每通关一次+1
|
||||
Portal []int32 `protobuf:"varint,3,rep,packed,name=portal,proto3" json:"portal"` // 传送门id
|
||||
Selectbuff []int32 `protobuf:"varint,4,rep,packed,name=selectbuff,proto3" json:"selectbuff"` // 给前端显示的buff 组
|
||||
//int32 curselectbuff = 5;// 当前已经选择的buf
|
||||
Group map[int32]int32 `protobuf:"bytes,6,rep,name=group,proto3" json:"group" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 事件组
|
||||
Complete bool `protobuf:"varint,7,opt,name=complete,proto3" json:"complete"` // 房间是否通关
|
||||
Addweight map[int32]int32 `protobuf:"bytes,8,rep,name=addweight,proto3" json:"addweight" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 选择buff权重增加 key 类型
|
||||
}
|
||||
|
||||
func (x *RoomData) Reset() {
|
||||
*x = RoomData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dungeon_dungeon_db_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RoomData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RoomData) ProtoMessage() {}
|
||||
|
||||
func (x *RoomData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dungeon_dungeon_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 RoomData.ProtoReflect.Descriptor instead.
|
||||
func (*RoomData) Descriptor() ([]byte, []int) {
|
||||
return file_dungeon_dungeon_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RoomData) GetEvent() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Event
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetCurRoomIndes() int32 {
|
||||
if x != nil {
|
||||
return x.CurRoomIndes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RoomData) GetPortal() []int32 {
|
||||
if x != nil {
|
||||
return x.Portal
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetSelectbuff() []int32 {
|
||||
if x != nil {
|
||||
return x.Selectbuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetGroup() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Group
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetComplete() bool {
|
||||
if x != nil {
|
||||
return x.Complete
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *RoomData) GetAddweight() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Addweight
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DBDungeon struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||
StageID int32 `protobuf:"varint,3,opt,name=stageID,proto3" json:"stageID"` // 关卡id
|
||||
Rooms *RoomData `protobuf:"bytes,4,opt,name=rooms,proto3" json:"rooms"` // 当前房间
|
||||
Envbuff []int32 `protobuf:"varint,5,rep,packed,name=envbuff,proto3" json:"envbuff"` // 环境buff 不能被更改
|
||||
Userbuff map[int32]int32 `protobuf:"bytes,6,rep,name=userbuff,proto3" json:"userbuff" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 玩家获得的buff key buff 类型
|
||||
Hero map[string]*DBHero `protobuf:"bytes,7,rep,name=hero,proto3" json:"hero" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 英雄信息
|
||||
Reward map[int32]bool `protobuf:"bytes,8,rep,name=reward,proto3" json:"reward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 是否首通 key:stageid
|
||||
Rtime int64 `protobuf:"varint,9,opt,name=rtime,proto3" json:"rtime"` // 刷新时间
|
||||
}
|
||||
|
||||
func (x *DBDungeon) Reset() {
|
||||
*x = DBDungeon{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dungeon_dungeon_db_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DBDungeon) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DBDungeon) ProtoMessage() {}
|
||||
|
||||
func (x *DBDungeon) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dungeon_dungeon_db_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 DBDungeon.ProtoReflect.Descriptor instead.
|
||||
func (*DBDungeon) Descriptor() ([]byte, []int) {
|
||||
return file_dungeon_dungeon_db_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetStageID() int32 {
|
||||
if x != nil {
|
||||
return x.StageID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetRooms() *RoomData {
|
||||
if x != nil {
|
||||
return x.Rooms
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetEnvbuff() []int32 {
|
||||
if x != nil {
|
||||
return x.Envbuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetUserbuff() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Userbuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetHero() map[string]*DBHero {
|
||||
if x != nil {
|
||||
return x.Hero
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetReward() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Reward
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBDungeon) GetRtime() int64 {
|
||||
if x != nil {
|
||||
return x.Rtime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_dungeon_dungeon_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_dungeon_dungeon_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x18, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f,
|
||||
0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f,
|
||||
0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4,
|
||||
0x03, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x05, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x52, 0x6f, 0x6f,
|
||||
0x6d, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x52, 0x6f,
|
||||
0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63,
|
||||
0x75, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70,
|
||||
0x6f, 0x72, 0x74, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x70, 0x6f, 0x72,
|
||||
0x74, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x62, 0x75, 0x66,
|
||||
0x66, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x62,
|
||||
0x75, 0x66, 0x66, 0x12, 0x2a, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x06, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x14, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x72,
|
||||
0x6f, 0x75, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12,
|
||||
0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x61,
|
||||
0x64, 0x64, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,
|
||||
0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x64, 0x64, 0x77, 0x65, 0x69,
|
||||
0x67, 0x68, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x61, 0x64, 0x64, 0x77, 0x65, 0x69,
|
||||
0x67, 0x68, 0x74, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72,
|
||||
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a,
|
||||
0x0a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3c, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x77, 0x65,
|
||||
0x69, 0x67, 0x68, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe2, 0x03, 0x0a, 0x09, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67,
|
||||
0x65, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x67, 0x65, 0x49, 0x44,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x74, 0x61, 0x67, 0x65, 0x49, 0x44, 0x12,
|
||||
0x1f, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09,
|
||||
0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73,
|
||||
0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x76, 0x62, 0x75, 0x66, 0x66, 0x18, 0x05, 0x20, 0x03, 0x28,
|
||||
0x05, 0x52, 0x07, 0x65, 0x6e, 0x76, 0x62, 0x75, 0x66, 0x66, 0x12, 0x34, 0x0a, 0x08, 0x75, 0x73,
|
||||
0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44,
|
||||
0x42, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66,
|
||||
0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66,
|
||||
0x12, 0x28, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14,
|
||||
0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x2e, 0x0a, 0x06, 0x72, 0x65,
|
||||
0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x44, 0x42, 0x44,
|
||||
0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x72, 0x74, 0x69, 0x6d, 0x65,
|
||||
0x1a, 0x3b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x45, 0x6e, 0x74, 0x72,
|
||||
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x40, 0x0a,
|
||||
0x09, 0x48, 0x65, 0x72, 0x6f, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
|
||||
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x05,
|
||||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42,
|
||||
0x48, 0x65, 0x72, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a,
|
||||
0x39, 0x0a, 0x0b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
||||
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
||||
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_dungeon_dungeon_db_proto_rawDescOnce sync.Once
|
||||
file_dungeon_dungeon_db_proto_rawDescData = file_dungeon_dungeon_db_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_dungeon_dungeon_db_proto_rawDescGZIP() []byte {
|
||||
file_dungeon_dungeon_db_proto_rawDescOnce.Do(func() {
|
||||
file_dungeon_dungeon_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_dungeon_dungeon_db_proto_rawDescData)
|
||||
})
|
||||
return file_dungeon_dungeon_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_dungeon_dungeon_db_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_dungeon_dungeon_db_proto_goTypes = []interface{}{
|
||||
(*RoomData)(nil), // 0: RoomData
|
||||
(*DBDungeon)(nil), // 1: DBDungeon
|
||||
nil, // 2: RoomData.EventEntry
|
||||
nil, // 3: RoomData.GroupEntry
|
||||
nil, // 4: RoomData.AddweightEntry
|
||||
nil, // 5: DBDungeon.UserbuffEntry
|
||||
nil, // 6: DBDungeon.HeroEntry
|
||||
nil, // 7: DBDungeon.RewardEntry
|
||||
(*DBHero)(nil), // 8: DBHero
|
||||
}
|
||||
var file_dungeon_dungeon_db_proto_depIdxs = []int32{
|
||||
2, // 0: RoomData.event:type_name -> RoomData.EventEntry
|
||||
3, // 1: RoomData.group:type_name -> RoomData.GroupEntry
|
||||
4, // 2: RoomData.addweight:type_name -> RoomData.AddweightEntry
|
||||
0, // 3: DBDungeon.rooms:type_name -> RoomData
|
||||
5, // 4: DBDungeon.userbuff:type_name -> DBDungeon.UserbuffEntry
|
||||
6, // 5: DBDungeon.hero:type_name -> DBDungeon.HeroEntry
|
||||
7, // 6: DBDungeon.reward:type_name -> DBDungeon.RewardEntry
|
||||
8, // 7: DBDungeon.HeroEntry.value:type_name -> DBHero
|
||||
8, // [8:8] is the sub-list for method output_type
|
||||
8, // [8:8] is the sub-list for method input_type
|
||||
8, // [8:8] is the sub-list for extension type_name
|
||||
8, // [8:8] is the sub-list for extension extendee
|
||||
0, // [0:8] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_dungeon_dungeon_db_proto_init() }
|
||||
func file_dungeon_dungeon_db_proto_init() {
|
||||
if File_dungeon_dungeon_db_proto != nil {
|
||||
return
|
||||
}
|
||||
file_hero_hero_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_dungeon_dungeon_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RoomData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_dungeon_dungeon_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DBDungeon); 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_dungeon_dungeon_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_dungeon_dungeon_db_proto_goTypes,
|
||||
DependencyIndexes: file_dungeon_dungeon_db_proto_depIdxs,
|
||||
MessageInfos: file_dungeon_dungeon_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_dungeon_dungeon_db_proto = out.File
|
||||
file_dungeon_dungeon_db_proto_rawDesc = nil
|
||||
file_dungeon_dungeon_db_proto_goTypes = nil
|
||||
file_dungeon_dungeon_db_proto_depIdxs = nil
|
||||
}
|
@ -1,316 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: dungeon/dungeon_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 DungeonGetListReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *DungeonGetListReq) Reset() {
|
||||
*x = DungeonGetListReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dungeon_dungeon_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DungeonGetListReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DungeonGetListReq) ProtoMessage() {}
|
||||
|
||||
func (x *DungeonGetListReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dungeon_dungeon_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 DungeonGetListReq.ProtoReflect.Descriptor instead.
|
||||
func (*DungeonGetListReq) Descriptor() ([]byte, []int) {
|
||||
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type DungeonGetListResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data *DBDungeon `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
||||
}
|
||||
|
||||
func (x *DungeonGetListResp) Reset() {
|
||||
*x = DungeonGetListResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dungeon_dungeon_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DungeonGetListResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DungeonGetListResp) ProtoMessage() {}
|
||||
|
||||
func (x *DungeonGetListResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dungeon_dungeon_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 DungeonGetListResp.ProtoReflect.Descriptor instead.
|
||||
func (*DungeonGetListResp) Descriptor() ([]byte, []int) {
|
||||
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DungeonGetListResp) GetData() *DBDungeon {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DungeonSelectReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *DungeonSelectReq) Reset() {
|
||||
*x = DungeonSelectReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dungeon_dungeon_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DungeonSelectReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DungeonSelectReq) ProtoMessage() {}
|
||||
|
||||
func (x *DungeonSelectReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dungeon_dungeon_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 DungeonSelectReq.ProtoReflect.Descriptor instead.
|
||||
func (*DungeonSelectReq) Descriptor() ([]byte, []int) {
|
||||
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
type DungeonSelectResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data *DBDungeon `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
||||
}
|
||||
|
||||
func (x *DungeonSelectResp) Reset() {
|
||||
*x = DungeonSelectResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_dungeon_dungeon_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DungeonSelectResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DungeonSelectResp) ProtoMessage() {}
|
||||
|
||||
func (x *DungeonSelectResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_dungeon_dungeon_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 DungeonSelectResp.ProtoReflect.Descriptor instead.
|
||||
func (*DungeonSelectResp) Descriptor() ([]byte, []int) {
|
||||
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *DungeonSelectResp) GetData() *DBDungeon {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_dungeon_dungeon_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_dungeon_dungeon_msg_proto_rawDesc = []byte{
|
||||
0x0a, 0x19, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f,
|
||||
0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x64, 0x75, 0x6e,
|
||||
0x67, 0x65, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e,
|
||||
0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x34, 0x0a, 0x12, 0x44, 0x75,
|
||||
0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
|
||||
0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a,
|
||||
0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
|
||||
0x22, 0x12, 0x0a, 0x10, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x53, 0x65, 0x6c, 0x65, 0x63,
|
||||
0x74, 0x52, 0x65, 0x71, 0x22, 0x33, 0x0a, 0x11, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x53,
|
||||
0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||
0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67,
|
||||
0x65, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
|
||||
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_dungeon_dungeon_msg_proto_rawDescOnce sync.Once
|
||||
file_dungeon_dungeon_msg_proto_rawDescData = file_dungeon_dungeon_msg_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_dungeon_dungeon_msg_proto_rawDescGZIP() []byte {
|
||||
file_dungeon_dungeon_msg_proto_rawDescOnce.Do(func() {
|
||||
file_dungeon_dungeon_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_dungeon_dungeon_msg_proto_rawDescData)
|
||||
})
|
||||
return file_dungeon_dungeon_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_dungeon_dungeon_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_dungeon_dungeon_msg_proto_goTypes = []interface{}{
|
||||
(*DungeonGetListReq)(nil), // 0: DungeonGetListReq
|
||||
(*DungeonGetListResp)(nil), // 1: DungeonGetListResp
|
||||
(*DungeonSelectReq)(nil), // 2: DungeonSelectReq
|
||||
(*DungeonSelectResp)(nil), // 3: DungeonSelectResp
|
||||
(*DBDungeon)(nil), // 4: DBDungeon
|
||||
}
|
||||
var file_dungeon_dungeon_msg_proto_depIdxs = []int32{
|
||||
4, // 0: DungeonGetListResp.data:type_name -> DBDungeon
|
||||
4, // 1: DungeonSelectResp.data:type_name -> DBDungeon
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_dungeon_dungeon_msg_proto_init() }
|
||||
func file_dungeon_dungeon_msg_proto_init() {
|
||||
if File_dungeon_dungeon_msg_proto != nil {
|
||||
return
|
||||
}
|
||||
file_dungeon_dungeon_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_dungeon_dungeon_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DungeonGetListReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_dungeon_dungeon_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DungeonGetListResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_dungeon_dungeon_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DungeonSelectReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_dungeon_dungeon_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DungeonSelectResp); 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_dungeon_dungeon_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_dungeon_dungeon_msg_proto_goTypes,
|
||||
DependencyIndexes: file_dungeon_dungeon_msg_proto_depIdxs,
|
||||
MessageInfos: file_dungeon_dungeon_msg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_dungeon_dungeon_msg_proto = out.File
|
||||
file_dungeon_dungeon_msg_proto_rawDesc = nil
|
||||
file_dungeon_dungeon_msg_proto_goTypes = nil
|
||||
file_dungeon_dungeon_msg_proto_depIdxs = nil
|
||||
}
|
390
pb/stonehenge_db.pb.go
Normal file
390
pb/stonehenge_db.pb.go
Normal file
@ -0,0 +1,390 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: stonehenge/stonehenge_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 RoomData struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Event map[int32]bool `protobuf:"bytes,1,rep,name=event,proto3" json:"event" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //房间的事件信息 true 表示已完成
|
||||
CurRoomIndes int32 `protobuf:"varint,2,opt,name=curRoomIndes,proto3" json:"curRoomIndes"` // 当前房间索引 初始 0 每通关一次+1
|
||||
Portal []int32 `protobuf:"varint,3,rep,packed,name=portal,proto3" json:"portal"` // 传送门id
|
||||
Selectbuff []int32 `protobuf:"varint,4,rep,packed,name=selectbuff,proto3" json:"selectbuff"` // 给前端显示的buff 组
|
||||
//int32 curselectbuff = 5;// 当前已经选择的buf
|
||||
Group map[int32]int32 `protobuf:"bytes,6,rep,name=group,proto3" json:"group" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 事件组
|
||||
Complete bool `protobuf:"varint,7,opt,name=complete,proto3" json:"complete"` // 房间是否通关
|
||||
Addweight map[int32]int32 `protobuf:"bytes,8,rep,name=addweight,proto3" json:"addweight" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 选择buff权重增加 key 类型
|
||||
}
|
||||
|
||||
func (x *RoomData) Reset() {
|
||||
*x = RoomData{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_stonehenge_stonehenge_db_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *RoomData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RoomData) ProtoMessage() {}
|
||||
|
||||
func (x *RoomData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_stonehenge_stonehenge_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 RoomData.ProtoReflect.Descriptor instead.
|
||||
func (*RoomData) Descriptor() ([]byte, []int) {
|
||||
return file_stonehenge_stonehenge_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *RoomData) GetEvent() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Event
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetCurRoomIndes() int32 {
|
||||
if x != nil {
|
||||
return x.CurRoomIndes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *RoomData) GetPortal() []int32 {
|
||||
if x != nil {
|
||||
return x.Portal
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetSelectbuff() []int32 {
|
||||
if x != nil {
|
||||
return x.Selectbuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetGroup() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Group
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RoomData) GetComplete() bool {
|
||||
if x != nil {
|
||||
return x.Complete
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *RoomData) GetAddweight() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Addweight
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DBStonehenge struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||
StageID int32 `protobuf:"varint,3,opt,name=stageID,proto3" json:"stageID"` // 关卡id
|
||||
Rooms *RoomData `protobuf:"bytes,4,opt,name=rooms,proto3" json:"rooms"` // 当前房间
|
||||
Envbuff []int32 `protobuf:"varint,5,rep,packed,name=envbuff,proto3" json:"envbuff"` // 环境buff 不能被更改
|
||||
Userbuff map[int32]int32 `protobuf:"bytes,6,rep,name=userbuff,proto3" json:"userbuff" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 玩家获得的buff key buff 类型
|
||||
Hero map[string]*DBHero `protobuf:"bytes,7,rep,name=hero,proto3" json:"hero" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 英雄信息
|
||||
Reward map[int32]bool `protobuf:"bytes,8,rep,name=reward,proto3" json:"reward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 是否首通 key:stageid
|
||||
Rtime int64 `protobuf:"varint,9,opt,name=rtime,proto3" json:"rtime"` // 刷新时间
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) Reset() {
|
||||
*x = DBStonehenge{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_stonehenge_stonehenge_db_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DBStonehenge) ProtoMessage() {}
|
||||
|
||||
func (x *DBStonehenge) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_stonehenge_stonehenge_db_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 DBStonehenge.ProtoReflect.Descriptor instead.
|
||||
func (*DBStonehenge) Descriptor() ([]byte, []int) {
|
||||
return file_stonehenge_stonehenge_db_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetStageID() int32 {
|
||||
if x != nil {
|
||||
return x.StageID
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetRooms() *RoomData {
|
||||
if x != nil {
|
||||
return x.Rooms
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetEnvbuff() []int32 {
|
||||
if x != nil {
|
||||
return x.Envbuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetUserbuff() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Userbuff
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetHero() map[string]*DBHero {
|
||||
if x != nil {
|
||||
return x.Hero
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetReward() map[int32]bool {
|
||||
if x != nil {
|
||||
return x.Reward
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBStonehenge) GetRtime() int64 {
|
||||
if x != nil {
|
||||
return x.Rtime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_stonehenge_stonehenge_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_stonehenge_stonehenge_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x1e, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x2f, 0x73, 0x74, 0x6f,
|
||||
0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x03, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74,
|
||||
0x61, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x14, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x76, 0x65, 0x6e,
|
||||
0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a,
|
||||
0x0c, 0x63, 0x75, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65,
|
||||
0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28,
|
||||
0x05, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6c,
|
||||
0x65, 0x63, 0x74, 0x62, 0x75, 0x66, 0x66, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x73,
|
||||
0x65, 0x6c, 0x65, 0x63, 0x74, 0x62, 0x75, 0x66, 0x66, 0x12, 0x2a, 0x0a, 0x05, 0x67, 0x72, 0x6f,
|
||||
0x75, 0x70, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44,
|
||||
0x61, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05,
|
||||
0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74,
|
||||
0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74,
|
||||
0x65, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x2e,
|
||||
0x41, 0x64, 0x64, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09,
|
||||
0x61, 0x64, 0x64, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x76, 0x65,
|
||||
0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
|
||||
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
|
||||
0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a, 0x0a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6e, 0x74, 0x72,
|
||||
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3c, 0x0a,
|
||||
0x0e, 0x41, 0x64, 0x64, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
||||
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65,
|
||||
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xee, 0x03, 0x0a, 0x0c,
|
||||
0x44, 0x42, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02,
|
||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03,
|
||||
0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x73, 0x74, 0x61, 0x67, 0x65, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x07, 0x73, 0x74, 0x61, 0x67, 0x65, 0x49, 0x44, 0x12, 0x1f, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d,
|
||||
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61,
|
||||
0x74, 0x61, 0x52, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x76,
|
||||
0x62, 0x75, 0x66, 0x66, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x65, 0x6e, 0x76, 0x62,
|
||||
0x75, 0x66, 0x66, 0x12, 0x37, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x18,
|
||||
0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68,
|
||||
0x65, 0x6e, 0x67, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x12, 0x2b, 0x0a, 0x04,
|
||||
0x68, 0x65, 0x72, 0x6f, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x44, 0x42, 0x53,
|
||||
0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x45, 0x6e,
|
||||
0x74, 0x72, 0x79, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x65, 0x77,
|
||||
0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x44, 0x42, 0x53, 0x74,
|
||||
0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x72, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x72, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x45, 0x6e,
|
||||
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a,
|
||||
0x40, 0x0a, 0x09, 0x48, 0x65, 0x72, 0x6f, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
||||
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d,
|
||||
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e,
|
||||
0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
||||
0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04,
|
||||
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_stonehenge_stonehenge_db_proto_rawDescOnce sync.Once
|
||||
file_stonehenge_stonehenge_db_proto_rawDescData = file_stonehenge_stonehenge_db_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_stonehenge_stonehenge_db_proto_rawDescGZIP() []byte {
|
||||
file_stonehenge_stonehenge_db_proto_rawDescOnce.Do(func() {
|
||||
file_stonehenge_stonehenge_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_stonehenge_stonehenge_db_proto_rawDescData)
|
||||
})
|
||||
return file_stonehenge_stonehenge_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_stonehenge_stonehenge_db_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_stonehenge_stonehenge_db_proto_goTypes = []interface{}{
|
||||
(*RoomData)(nil), // 0: RoomData
|
||||
(*DBStonehenge)(nil), // 1: DBStonehenge
|
||||
nil, // 2: RoomData.EventEntry
|
||||
nil, // 3: RoomData.GroupEntry
|
||||
nil, // 4: RoomData.AddweightEntry
|
||||
nil, // 5: DBStonehenge.UserbuffEntry
|
||||
nil, // 6: DBStonehenge.HeroEntry
|
||||
nil, // 7: DBStonehenge.RewardEntry
|
||||
(*DBHero)(nil), // 8: DBHero
|
||||
}
|
||||
var file_stonehenge_stonehenge_db_proto_depIdxs = []int32{
|
||||
2, // 0: RoomData.event:type_name -> RoomData.EventEntry
|
||||
3, // 1: RoomData.group:type_name -> RoomData.GroupEntry
|
||||
4, // 2: RoomData.addweight:type_name -> RoomData.AddweightEntry
|
||||
0, // 3: DBStonehenge.rooms:type_name -> RoomData
|
||||
5, // 4: DBStonehenge.userbuff:type_name -> DBStonehenge.UserbuffEntry
|
||||
6, // 5: DBStonehenge.hero:type_name -> DBStonehenge.HeroEntry
|
||||
7, // 6: DBStonehenge.reward:type_name -> DBStonehenge.RewardEntry
|
||||
8, // 7: DBStonehenge.HeroEntry.value:type_name -> DBHero
|
||||
8, // [8:8] is the sub-list for method output_type
|
||||
8, // [8:8] is the sub-list for method input_type
|
||||
8, // [8:8] is the sub-list for extension type_name
|
||||
8, // [8:8] is the sub-list for extension extendee
|
||||
0, // [0:8] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_stonehenge_stonehenge_db_proto_init() }
|
||||
func file_stonehenge_stonehenge_db_proto_init() {
|
||||
if File_stonehenge_stonehenge_db_proto != nil {
|
||||
return
|
||||
}
|
||||
file_hero_hero_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_stonehenge_stonehenge_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*RoomData); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_stonehenge_stonehenge_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DBStonehenge); 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_stonehenge_stonehenge_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_stonehenge_stonehenge_db_proto_goTypes,
|
||||
DependencyIndexes: file_stonehenge_stonehenge_db_proto_depIdxs,
|
||||
MessageInfos: file_stonehenge_stonehenge_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_stonehenge_stonehenge_db_proto = out.File
|
||||
file_stonehenge_stonehenge_db_proto_rawDesc = nil
|
||||
file_stonehenge_stonehenge_db_proto_goTypes = nil
|
||||
file_stonehenge_stonehenge_db_proto_depIdxs = nil
|
||||
}
|
318
pb/stonehenge_msg.pb.go
Normal file
318
pb/stonehenge_msg.pb.go
Normal file
@ -0,0 +1,318 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: stonehenge/stonehenge_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 StonehengeGetListReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *StonehengeGetListReq) Reset() {
|
||||
*x = StonehengeGetListReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_stonehenge_stonehenge_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *StonehengeGetListReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StonehengeGetListReq) ProtoMessage() {}
|
||||
|
||||
func (x *StonehengeGetListReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_stonehenge_stonehenge_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 StonehengeGetListReq.ProtoReflect.Descriptor instead.
|
||||
func (*StonehengeGetListReq) Descriptor() ([]byte, []int) {
|
||||
return file_stonehenge_stonehenge_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type StonehengeGetListResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data *DBStonehenge `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
||||
}
|
||||
|
||||
func (x *StonehengeGetListResp) Reset() {
|
||||
*x = StonehengeGetListResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_stonehenge_stonehenge_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *StonehengeGetListResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StonehengeGetListResp) ProtoMessage() {}
|
||||
|
||||
func (x *StonehengeGetListResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_stonehenge_stonehenge_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 StonehengeGetListResp.ProtoReflect.Descriptor instead.
|
||||
func (*StonehengeGetListResp) Descriptor() ([]byte, []int) {
|
||||
return file_stonehenge_stonehenge_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *StonehengeGetListResp) GetData() *DBStonehenge {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type StonehengeSelectReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *StonehengeSelectReq) Reset() {
|
||||
*x = StonehengeSelectReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_stonehenge_stonehenge_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *StonehengeSelectReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StonehengeSelectReq) ProtoMessage() {}
|
||||
|
||||
func (x *StonehengeSelectReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_stonehenge_stonehenge_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 StonehengeSelectReq.ProtoReflect.Descriptor instead.
|
||||
func (*StonehengeSelectReq) Descriptor() ([]byte, []int) {
|
||||
return file_stonehenge_stonehenge_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
type StonehengeSelectResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Data *DBStonehenge `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
||||
}
|
||||
|
||||
func (x *StonehengeSelectResp) Reset() {
|
||||
*x = StonehengeSelectResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_stonehenge_stonehenge_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *StonehengeSelectResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StonehengeSelectResp) ProtoMessage() {}
|
||||
|
||||
func (x *StonehengeSelectResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_stonehenge_stonehenge_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 StonehengeSelectResp.ProtoReflect.Descriptor instead.
|
||||
func (*StonehengeSelectResp) Descriptor() ([]byte, []int) {
|
||||
return file_stonehenge_stonehenge_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *StonehengeSelectResp) GetData() *DBStonehenge {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_stonehenge_stonehenge_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_stonehenge_stonehenge_msg_proto_rawDesc = []byte{
|
||||
0x0a, 0x1f, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x2f, 0x73, 0x74, 0x6f,
|
||||
0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x1e, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x2f, 0x73, 0x74,
|
||||
0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x47,
|
||||
0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x3a, 0x0a, 0x15, 0x53, 0x74, 0x6f,
|
||||
0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
||||
0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x0d, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x52,
|
||||
0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65,
|
||||
0x6e, 0x67, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x22, 0x39, 0x0a, 0x14,
|
||||
0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74,
|
||||
0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x6e, 0x65, 0x68, 0x65, 0x6e, 0x67,
|
||||
0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_stonehenge_stonehenge_msg_proto_rawDescOnce sync.Once
|
||||
file_stonehenge_stonehenge_msg_proto_rawDescData = file_stonehenge_stonehenge_msg_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_stonehenge_stonehenge_msg_proto_rawDescGZIP() []byte {
|
||||
file_stonehenge_stonehenge_msg_proto_rawDescOnce.Do(func() {
|
||||
file_stonehenge_stonehenge_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_stonehenge_stonehenge_msg_proto_rawDescData)
|
||||
})
|
||||
return file_stonehenge_stonehenge_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_stonehenge_stonehenge_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_stonehenge_stonehenge_msg_proto_goTypes = []interface{}{
|
||||
(*StonehengeGetListReq)(nil), // 0: StonehengeGetListReq
|
||||
(*StonehengeGetListResp)(nil), // 1: StonehengeGetListResp
|
||||
(*StonehengeSelectReq)(nil), // 2: StonehengeSelectReq
|
||||
(*StonehengeSelectResp)(nil), // 3: StonehengeSelectResp
|
||||
(*DBStonehenge)(nil), // 4: DBStonehenge
|
||||
}
|
||||
var file_stonehenge_stonehenge_msg_proto_depIdxs = []int32{
|
||||
4, // 0: StonehengeGetListResp.data:type_name -> DBStonehenge
|
||||
4, // 1: StonehengeSelectResp.data:type_name -> DBStonehenge
|
||||
2, // [2:2] is the sub-list for method output_type
|
||||
2, // [2:2] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_stonehenge_stonehenge_msg_proto_init() }
|
||||
func file_stonehenge_stonehenge_msg_proto_init() {
|
||||
if File_stonehenge_stonehenge_msg_proto != nil {
|
||||
return
|
||||
}
|
||||
file_stonehenge_stonehenge_db_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_stonehenge_stonehenge_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StonehengeGetListReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_stonehenge_stonehenge_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StonehengeGetListResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_stonehenge_stonehenge_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StonehengeSelectReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_stonehenge_stonehenge_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*StonehengeSelectResp); 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_stonehenge_stonehenge_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_stonehenge_stonehenge_msg_proto_goTypes,
|
||||
DependencyIndexes: file_stonehenge_stonehenge_msg_proto_depIdxs,
|
||||
MessageInfos: file_stonehenge_stonehenge_msg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_stonehenge_stonehenge_msg_proto = out.File
|
||||
file_stonehenge_stonehenge_msg_proto_rawDesc = nil
|
||||
file_stonehenge_stonehenge_msg_proto_goTypes = nil
|
||||
file_stonehenge_stonehenge_msg_proto_depIdxs = nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user