Files
hk4e/protocol/proto/GCGDuel.pb.go
2022-11-24 22:47:24 +08:00

346 lines
14 KiB
Go

// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: GCGDuel.proto
package proto
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 GCGDuel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerSeq uint32 `protobuf:"varint,3,opt,name=server_seq,json=serverSeq,proto3" json:"server_seq,omitempty"`
FieldList []*GCGPlayerField `protobuf:"bytes,7,rep,name=field_list,json=fieldList,proto3" json:"field_list,omitempty"`
BusinessType GCGGameBusinessType `protobuf:"varint,14,opt,name=business_type,json=businessType,proto3,enum=proto.GCGGameBusinessType" json:"business_type,omitempty"`
ChallengeList []*GCGDuelChallenge `protobuf:"bytes,5,rep,name=challenge_list,json=challengeList,proto3" json:"challenge_list,omitempty"`
GameId uint32 `protobuf:"varint,11,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
ControllerId uint32 `protobuf:"varint,13,opt,name=controller_id,json=controllerId,proto3" json:"controller_id,omitempty"`
Round uint32 `protobuf:"varint,15,opt,name=round,proto3" json:"round,omitempty"`
CurControllerId uint32 `protobuf:"varint,12,opt,name=cur_controller_id,json=curControllerId,proto3" json:"cur_controller_id,omitempty"`
IntetionList []*GCGPVEIntention `protobuf:"bytes,1,rep,name=intetion_list,json=intetionList,proto3" json:"intetion_list,omitempty"`
CostRevise *GCGCostReviseInfo `protobuf:"bytes,10,opt,name=cost_revise,json=costRevise,proto3" json:"cost_revise,omitempty"`
CardIdList []uint32 `protobuf:"varint,4,rep,packed,name=card_id_list,json=cardIdList,proto3" json:"card_id_list,omitempty"`
CardList []*GCGCard `protobuf:"bytes,9,rep,name=card_list,json=cardList,proto3" json:"card_list,omitempty"`
ShowInfoList []*GCGControllerShowInfo `protobuf:"bytes,6,rep,name=show_info_list,json=showInfoList,proto3" json:"show_info_list,omitempty"`
GameType uint32 `protobuf:"varint,2,opt,name=game_type,json=gameType,proto3" json:"game_type,omitempty"`
Phase *GCGPhase `protobuf:"bytes,8,opt,name=phase,proto3" json:"phase,omitempty"`
}
func (x *GCGDuel) Reset() {
*x = GCGDuel{}
if protoimpl.UnsafeEnabled {
mi := &file_GCGDuel_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GCGDuel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GCGDuel) ProtoMessage() {}
func (x *GCGDuel) ProtoReflect() protoreflect.Message {
mi := &file_GCGDuel_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 GCGDuel.ProtoReflect.Descriptor instead.
func (*GCGDuel) Descriptor() ([]byte, []int) {
return file_GCGDuel_proto_rawDescGZIP(), []int{0}
}
func (x *GCGDuel) GetServerSeq() uint32 {
if x != nil {
return x.ServerSeq
}
return 0
}
func (x *GCGDuel) GetFieldList() []*GCGPlayerField {
if x != nil {
return x.FieldList
}
return nil
}
func (x *GCGDuel) GetBusinessType() GCGGameBusinessType {
if x != nil {
return x.BusinessType
}
return GCGGameBusinessType_GCG_GAME_BUSINESS_TYPE_NONE
}
func (x *GCGDuel) GetChallengeList() []*GCGDuelChallenge {
if x != nil {
return x.ChallengeList
}
return nil
}
func (x *GCGDuel) GetGameId() uint32 {
if x != nil {
return x.GameId
}
return 0
}
func (x *GCGDuel) GetControllerId() uint32 {
if x != nil {
return x.ControllerId
}
return 0
}
func (x *GCGDuel) GetRound() uint32 {
if x != nil {
return x.Round
}
return 0
}
func (x *GCGDuel) GetCurControllerId() uint32 {
if x != nil {
return x.CurControllerId
}
return 0
}
func (x *GCGDuel) GetIntetionList() []*GCGPVEIntention {
if x != nil {
return x.IntetionList
}
return nil
}
func (x *GCGDuel) GetCostRevise() *GCGCostReviseInfo {
if x != nil {
return x.CostRevise
}
return nil
}
func (x *GCGDuel) GetCardIdList() []uint32 {
if x != nil {
return x.CardIdList
}
return nil
}
func (x *GCGDuel) GetCardList() []*GCGCard {
if x != nil {
return x.CardList
}
return nil
}
func (x *GCGDuel) GetShowInfoList() []*GCGControllerShowInfo {
if x != nil {
return x.ShowInfoList
}
return nil
}
func (x *GCGDuel) GetGameType() uint32 {
if x != nil {
return x.GameType
}
return 0
}
func (x *GCGDuel) GetPhase() *GCGPhase {
if x != nil {
return x.Phase
}
return nil
}
var File_GCGDuel_proto protoreflect.FileDescriptor
var file_GCGDuel_proto_rawDesc = []byte{
0x0a, 0x0d, 0x47, 0x43, 0x47, 0x44, 0x75, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x47, 0x43, 0x47, 0x43, 0x61, 0x72, 0x64, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x47, 0x43, 0x47, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
0x6c, 0x6c, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x77, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x17, 0x47, 0x43, 0x47, 0x43, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73,
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x47, 0x43, 0x47,
0x44, 0x75, 0x65, 0x6c, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x47, 0x43, 0x47, 0x47, 0x61, 0x6d, 0x65, 0x42, 0x75, 0x73, 0x69,
0x6e, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15,
0x47, 0x43, 0x47, 0x50, 0x56, 0x45, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x47, 0x43, 0x47, 0x50, 0x68, 0x61, 0x73, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x47, 0x43, 0x47, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72,
0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x05, 0x0a, 0x07,
0x47, 0x43, 0x47, 0x44, 0x75, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65,
0x72, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x65, 0x72,
0x76, 0x65, 0x72, 0x53, 0x65, 0x71, 0x12, 0x34, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
0x6c, 0x69, 0x73, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x46, 0x69, 0x65, 0x6c,
0x64, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0d,
0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47, 0x47,
0x61, 0x6d, 0x65, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52,
0x0c, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a,
0x0e, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18,
0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x43,
0x47, 0x44, 0x75, 0x65, 0x6c, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x0d,
0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 0x0a,
0x07, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06,
0x67, 0x61, 0x6d, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x63,
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72,
0x6f, 0x75, 0x6e, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e,
0x64, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x75, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
0x6c, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x63, 0x75,
0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3b, 0x0a,
0x0d, 0x69, 0x6e, 0x74, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47,
0x50, 0x56, 0x45, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x69, 0x6e,
0x74, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0b, 0x63, 0x6f,
0x73, 0x74, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47, 0x43, 0x6f, 0x73, 0x74, 0x52,
0x65, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x63, 0x6f, 0x73, 0x74, 0x52,
0x65, 0x76, 0x69, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64,
0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x63, 0x61, 0x72,
0x64, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x09, 0x63, 0x61, 0x72, 0x64, 0x5f,
0x6c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47, 0x43, 0x61, 0x72, 0x64, 0x52, 0x08, 0x63, 0x61, 0x72, 0x64,
0x4c, 0x69, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0e, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x66,
0x6f, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c,
0x65, 0x72, 0x53, 0x68, 0x6f, 0x77, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x77,
0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x6d, 0x65,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x67, 0x61, 0x6d,
0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x08,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x43, 0x47,
0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x42, 0x0a, 0x5a, 0x08,
0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_GCGDuel_proto_rawDescOnce sync.Once
file_GCGDuel_proto_rawDescData = file_GCGDuel_proto_rawDesc
)
func file_GCGDuel_proto_rawDescGZIP() []byte {
file_GCGDuel_proto_rawDescOnce.Do(func() {
file_GCGDuel_proto_rawDescData = protoimpl.X.CompressGZIP(file_GCGDuel_proto_rawDescData)
})
return file_GCGDuel_proto_rawDescData
}
var file_GCGDuel_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_GCGDuel_proto_goTypes = []interface{}{
(*GCGDuel)(nil), // 0: proto.GCGDuel
(*GCGPlayerField)(nil), // 1: proto.GCGPlayerField
(GCGGameBusinessType)(0), // 2: proto.GCGGameBusinessType
(*GCGDuelChallenge)(nil), // 3: proto.GCGDuelChallenge
(*GCGPVEIntention)(nil), // 4: proto.GCGPVEIntention
(*GCGCostReviseInfo)(nil), // 5: proto.GCGCostReviseInfo
(*GCGCard)(nil), // 6: proto.GCGCard
(*GCGControllerShowInfo)(nil), // 7: proto.GCGControllerShowInfo
(*GCGPhase)(nil), // 8: proto.GCGPhase
}
var file_GCGDuel_proto_depIdxs = []int32{
1, // 0: proto.GCGDuel.field_list:type_name -> proto.GCGPlayerField
2, // 1: proto.GCGDuel.business_type:type_name -> proto.GCGGameBusinessType
3, // 2: proto.GCGDuel.challenge_list:type_name -> proto.GCGDuelChallenge
4, // 3: proto.GCGDuel.intetion_list:type_name -> proto.GCGPVEIntention
5, // 4: proto.GCGDuel.cost_revise:type_name -> proto.GCGCostReviseInfo
6, // 5: proto.GCGDuel.card_list:type_name -> proto.GCGCard
7, // 6: proto.GCGDuel.show_info_list:type_name -> proto.GCGControllerShowInfo
8, // 7: proto.GCGDuel.phase:type_name -> proto.GCGPhase
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_GCGDuel_proto_init() }
func file_GCGDuel_proto_init() {
if File_GCGDuel_proto != nil {
return
}
file_GCGCard_proto_init()
file_GCGControllerShowInfo_proto_init()
file_GCGCostReviseInfo_proto_init()
file_GCGDuelChallenge_proto_init()
file_GCGGameBusinessType_proto_init()
file_GCGPVEIntention_proto_init()
file_GCGPhase_proto_init()
file_GCGPlayerField_proto_init()
if !protoimpl.UnsafeEnabled {
file_GCGDuel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GCGDuel); 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_GCGDuel_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_GCGDuel_proto_goTypes,
DependencyIndexes: file_GCGDuel_proto_depIdxs,
MessageInfos: file_GCGDuel_proto_msgTypes,
}.Build()
File_GCGDuel_proto = out.File
file_GCGDuel_proto_rawDesc = nil
file_GCGDuel_proto_goTypes = nil
file_GCGDuel_proto_depIdxs = nil
}