Commit 388dc2ed authored by Chunchi Che's avatar Chunchi Che

update ygopro.proto

parent 990048c3
......@@ -90,11 +90,11 @@ func Transform(src []byte, tranformType int) ([]byte, error) {
return nil, err
}
var pb ygopropb.YgoCtosMsg
var pb ygopropb.YgoStocMsg
switch packet.Proto {
case StocChat:
msg := transformChat(packet)
pb = ygopropb.YgoCtosMsg{
pb = ygopropb.YgoStocMsg{
Msg: &msg,
}
default:
......@@ -149,11 +149,11 @@ func transformJoinGame(pb *ygopropb.CtosJoinGame) YgoPacket {
// @player: uint16
// @message: []uint16
func transformChat(pkt YgoPacket) ygopropb.YgoCtosMsg_StocChat {
func transformChat(pkt YgoPacket) ygopropb.YgoStocMsg_StocChat {
player := int32(binary.LittleEndian.Uint16(pkt.Exdata))
message := utf16BufferToStr(pkt.Exdata[2:])
return ygopropb.YgoCtosMsg_StocChat{
return ygopropb.YgoStocMsg_StocChat{
StocChat: &ygopropb.StocChat{
Player: player,
Msg: message,
......
......@@ -29,10 +29,6 @@ type YgoCtosMsg struct {
// *YgoCtosMsg_CtosPlayerInfo
// *YgoCtosMsg_CtosJoinGame
// *YgoCtosMsg_CtosUpdateDeck
// *YgoCtosMsg_StocJoinGame
// *YgoCtosMsg_StocChat
// *YgoCtosMsg_StocHsPlayerEnter
// *YgoCtosMsg_StocTypeChange
Msg isYgoCtosMsg_Msg `protobuf_oneof:"msg"`
}
......@@ -96,79 +92,135 @@ func (x *YgoCtosMsg) GetCtosUpdateDeck() *CtosUpdateDeck {
return nil
}
func (x *YgoCtosMsg) GetStocJoinGame() *StocJoinGame {
if x, ok := x.GetMsg().(*YgoCtosMsg_StocJoinGame); ok {
return x.StocJoinGame
type isYgoCtosMsg_Msg interface {
isYgoCtosMsg_Msg()
}
type YgoCtosMsg_CtosPlayerInfo struct {
CtosPlayerInfo *CtosPlayerInfo `protobuf:"bytes,1,opt,name=ctos_player_info,json=ctosPlayerInfo,proto3,oneof"`
}
type YgoCtosMsg_CtosJoinGame struct {
CtosJoinGame *CtosJoinGame `protobuf:"bytes,2,opt,name=ctos_join_game,json=ctosJoinGame,proto3,oneof"`
}
type YgoCtosMsg_CtosUpdateDeck struct {
CtosUpdateDeck *CtosUpdateDeck `protobuf:"bytes,3,opt,name=ctos_update_deck,json=ctosUpdateDeck,proto3,oneof"`
}
func (*YgoCtosMsg_CtosPlayerInfo) isYgoCtosMsg_Msg() {}
func (*YgoCtosMsg_CtosJoinGame) isYgoCtosMsg_Msg() {}
func (*YgoCtosMsg_CtosUpdateDeck) isYgoCtosMsg_Msg() {}
type YgoStocMsg struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Msg:
// *YgoStocMsg_StocJoinGame
// *YgoStocMsg_StocChat
// *YgoStocMsg_StocHsPlayerEnter
// *YgoStocMsg_StocTypeChange
Msg isYgoStocMsg_Msg `protobuf_oneof:"msg"`
}
func (x *YgoStocMsg) Reset() {
*x = YgoStocMsg{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
return nil
}
func (x *YgoCtosMsg) GetStocChat() *StocChat {
if x, ok := x.GetMsg().(*YgoCtosMsg_StocChat); ok {
return x.StocChat
func (x *YgoStocMsg) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*YgoStocMsg) ProtoMessage() {}
func (x *YgoStocMsg) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_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 nil
return mi.MessageOf(x)
}
func (x *YgoCtosMsg) GetStocHsPlayerEnter() *StocHsPlayerEnter {
if x, ok := x.GetMsg().(*YgoCtosMsg_StocHsPlayerEnter); ok {
return x.StocHsPlayerEnter
// Deprecated: Use YgoStocMsg.ProtoReflect.Descriptor instead.
func (*YgoStocMsg) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{1}
}
func (m *YgoStocMsg) GetMsg() isYgoStocMsg_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (x *YgoCtosMsg) GetStocTypeChange() *StocTypeChange {
if x, ok := x.GetMsg().(*YgoCtosMsg_StocTypeChange); ok {
return x.StocTypeChange
func (x *YgoStocMsg) GetStocJoinGame() *StocJoinGame {
if x, ok := x.GetMsg().(*YgoStocMsg_StocJoinGame); ok {
return x.StocJoinGame
}
return nil
}
type isYgoCtosMsg_Msg interface {
isYgoCtosMsg_Msg()
func (x *YgoStocMsg) GetStocChat() *StocChat {
if x, ok := x.GetMsg().(*YgoStocMsg_StocChat); ok {
return x.StocChat
}
return nil
}
type YgoCtosMsg_CtosPlayerInfo struct {
CtosPlayerInfo *CtosPlayerInfo `protobuf:"bytes,2,opt,name=ctos_player_info,json=ctosPlayerInfo,proto3,oneof"`
func (x *YgoStocMsg) GetStocHsPlayerEnter() *StocHsPlayerEnter {
if x, ok := x.GetMsg().(*YgoStocMsg_StocHsPlayerEnter); ok {
return x.StocHsPlayerEnter
}
return nil
}
type YgoCtosMsg_CtosJoinGame struct {
CtosJoinGame *CtosJoinGame `protobuf:"bytes,3,opt,name=ctos_join_game,json=ctosJoinGame,proto3,oneof"`
func (x *YgoStocMsg) GetStocTypeChange() *StocTypeChange {
if x, ok := x.GetMsg().(*YgoStocMsg_StocTypeChange); ok {
return x.StocTypeChange
}
return nil
}
type YgoCtosMsg_CtosUpdateDeck struct {
CtosUpdateDeck *CtosUpdateDeck `protobuf:"bytes,4,opt,name=ctos_update_deck,json=ctosUpdateDeck,proto3,oneof"`
type isYgoStocMsg_Msg interface {
isYgoStocMsg_Msg()
}
type YgoCtosMsg_StocJoinGame struct {
StocJoinGame *StocJoinGame `protobuf:"bytes,101,opt,name=stoc_join_game,json=stocJoinGame,proto3,oneof"`
type YgoStocMsg_StocJoinGame struct {
StocJoinGame *StocJoinGame `protobuf:"bytes,1,opt,name=stoc_join_game,json=stocJoinGame,proto3,oneof"`
}
type YgoCtosMsg_StocChat struct {
StocChat *StocChat `protobuf:"bytes,102,opt,name=stoc_chat,json=stocChat,proto3,oneof"`
type YgoStocMsg_StocChat struct {
StocChat *StocChat `protobuf:"bytes,2,opt,name=stoc_chat,json=stocChat,proto3,oneof"`
}
type YgoCtosMsg_StocHsPlayerEnter struct {
StocHsPlayerEnter *StocHsPlayerEnter `protobuf:"bytes,103,opt,name=stoc_hs_player_enter,json=stocHsPlayerEnter,proto3,oneof"`
type YgoStocMsg_StocHsPlayerEnter struct {
StocHsPlayerEnter *StocHsPlayerEnter `protobuf:"bytes,3,opt,name=stoc_hs_player_enter,json=stocHsPlayerEnter,proto3,oneof"`
}
type YgoCtosMsg_StocTypeChange struct {
StocTypeChange *StocTypeChange `protobuf:"bytes,104,opt,name=stoc_type_change,json=stocTypeChange,proto3,oneof"`
type YgoStocMsg_StocTypeChange struct {
StocTypeChange *StocTypeChange `protobuf:"bytes,4,opt,name=stoc_type_change,json=stocTypeChange,proto3,oneof"`
}
func (*YgoCtosMsg_CtosPlayerInfo) isYgoCtosMsg_Msg() {}
func (*YgoCtosMsg_CtosJoinGame) isYgoCtosMsg_Msg() {}
func (*YgoCtosMsg_CtosUpdateDeck) isYgoCtosMsg_Msg() {}
func (*YgoStocMsg_StocJoinGame) isYgoStocMsg_Msg() {}
func (*YgoCtosMsg_StocJoinGame) isYgoCtosMsg_Msg() {}
func (*YgoStocMsg_StocChat) isYgoStocMsg_Msg() {}
func (*YgoCtosMsg_StocChat) isYgoCtosMsg_Msg() {}
func (*YgoStocMsg_StocHsPlayerEnter) isYgoStocMsg_Msg() {}
func (*YgoCtosMsg_StocHsPlayerEnter) isYgoCtosMsg_Msg() {}
func (*YgoCtosMsg_StocTypeChange) isYgoCtosMsg_Msg() {}
func (*YgoStocMsg_StocTypeChange) isYgoStocMsg_Msg() {}
type CtosPlayerInfo struct {
state protoimpl.MessageState
......@@ -181,7 +233,7 @@ type CtosPlayerInfo struct {
func (x *CtosPlayerInfo) Reset() {
*x = CtosPlayerInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[1]
mi := &file_ygopro_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -194,7 +246,7 @@ func (x *CtosPlayerInfo) String() string {
func (*CtosPlayerInfo) ProtoMessage() {}
func (x *CtosPlayerInfo) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[1]
mi := &file_ygopro_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -207,7 +259,7 @@ func (x *CtosPlayerInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use CtosPlayerInfo.ProtoReflect.Descriptor instead.
func (*CtosPlayerInfo) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{1}
return file_ygopro_proto_rawDescGZIP(), []int{2}
}
func (x *CtosPlayerInfo) GetName() string {
......@@ -230,7 +282,7 @@ type CtosJoinGame struct {
func (x *CtosJoinGame) Reset() {
*x = CtosJoinGame{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[2]
mi := &file_ygopro_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -243,7 +295,7 @@ func (x *CtosJoinGame) String() string {
func (*CtosJoinGame) ProtoMessage() {}
func (x *CtosJoinGame) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[2]
mi := &file_ygopro_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -256,7 +308,7 @@ func (x *CtosJoinGame) ProtoReflect() protoreflect.Message {
// Deprecated: Use CtosJoinGame.ProtoReflect.Descriptor instead.
func (*CtosJoinGame) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{2}
return file_ygopro_proto_rawDescGZIP(), []int{3}
}
func (x *CtosJoinGame) GetVersion() int32 {
......@@ -293,7 +345,7 @@ type CtosUpdateDeck struct {
func (x *CtosUpdateDeck) Reset() {
*x = CtosUpdateDeck{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[3]
mi := &file_ygopro_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -306,7 +358,7 @@ func (x *CtosUpdateDeck) String() string {
func (*CtosUpdateDeck) ProtoMessage() {}
func (x *CtosUpdateDeck) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[3]
mi := &file_ygopro_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -319,7 +371,7 @@ func (x *CtosUpdateDeck) ProtoReflect() protoreflect.Message {
// Deprecated: Use CtosUpdateDeck.ProtoReflect.Descriptor instead.
func (*CtosUpdateDeck) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{3}
return file_ygopro_proto_rawDescGZIP(), []int{4}
}
func (x *CtosUpdateDeck) GetMain() []int32 {
......@@ -363,7 +415,7 @@ type StocJoinGame struct {
func (x *StocJoinGame) Reset() {
*x = StocJoinGame{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[4]
mi := &file_ygopro_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -376,7 +428,7 @@ func (x *StocJoinGame) String() string {
func (*StocJoinGame) ProtoMessage() {}
func (x *StocJoinGame) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[4]
mi := &file_ygopro_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -389,7 +441,7 @@ func (x *StocJoinGame) ProtoReflect() protoreflect.Message {
// Deprecated: Use StocJoinGame.ProtoReflect.Descriptor instead.
func (*StocJoinGame) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{4}
return file_ygopro_proto_rawDescGZIP(), []int{5}
}
func (x *StocJoinGame) GetLflist() int32 {
......@@ -474,7 +526,7 @@ type StocChat struct {
func (x *StocChat) Reset() {
*x = StocChat{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[5]
mi := &file_ygopro_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -487,7 +539,7 @@ func (x *StocChat) String() string {
func (*StocChat) ProtoMessage() {}
func (x *StocChat) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[5]
mi := &file_ygopro_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -500,7 +552,7 @@ func (x *StocChat) ProtoReflect() protoreflect.Message {
// Deprecated: Use StocChat.ProtoReflect.Descriptor instead.
func (*StocChat) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{5}
return file_ygopro_proto_rawDescGZIP(), []int{6}
}
func (x *StocChat) GetPlayer() int32 {
......@@ -529,7 +581,7 @@ type StocHsPlayerEnter struct {
func (x *StocHsPlayerEnter) Reset() {
*x = StocHsPlayerEnter{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[6]
mi := &file_ygopro_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -542,7 +594,7 @@ func (x *StocHsPlayerEnter) String() string {
func (*StocHsPlayerEnter) ProtoMessage() {}
func (x *StocHsPlayerEnter) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[6]
mi := &file_ygopro_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -555,7 +607,7 @@ func (x *StocHsPlayerEnter) ProtoReflect() protoreflect.Message {
// Deprecated: Use StocHsPlayerEnter.ProtoReflect.Descriptor instead.
func (*StocHsPlayerEnter) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{6}
return file_ygopro_proto_rawDescGZIP(), []int{7}
}
func (x *StocHsPlayerEnter) GetName() string {
......@@ -583,7 +635,7 @@ type StocTypeChange struct {
func (x *StocTypeChange) Reset() {
*x = StocTypeChange{}
if protoimpl.UnsafeEnabled {
mi := &file_ygopro_proto_msgTypes[7]
mi := &file_ygopro_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -596,7 +648,7 @@ func (x *StocTypeChange) String() string {
func (*StocTypeChange) ProtoMessage() {}
func (x *StocTypeChange) ProtoReflect() protoreflect.Message {
mi := &file_ygopro_proto_msgTypes[7]
mi := &file_ygopro_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -609,7 +661,7 @@ func (x *StocTypeChange) ProtoReflect() protoreflect.Message {
// Deprecated: Use StocTypeChange.ProtoReflect.Descriptor instead.
func (*StocTypeChange) Descriptor() ([]byte, []int) {
return file_ygopro_proto_rawDescGZIP(), []int{7}
return file_ygopro_proto_rawDescGZIP(), []int{8}
}
func (x *StocTypeChange) GetType() int32 {
......@@ -623,80 +675,81 @@ var File_ygopro_proto protoreflect.FileDescriptor
var file_ygopro_proto_rawDesc = []byte{
0x0a, 0x0c, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x22, 0xda, 0x03, 0x0a, 0x0a, 0x59, 0x67, 0x6f, 0x43, 0x74,
0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x22, 0xd9, 0x01, 0x0a, 0x0a, 0x59, 0x67, 0x6f, 0x43, 0x74,
0x6f, 0x73, 0x4d, 0x73, 0x67, 0x12, 0x42, 0x0a, 0x10, 0x63, 0x74, 0x6f, 0x73, 0x5f, 0x70, 0x6c,
0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x61, 0x79, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x16, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x43, 0x74, 0x6f, 0x73, 0x50, 0x6c, 0x61,
0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x74, 0x6f, 0x73, 0x50,
0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3c, 0x0a, 0x0e, 0x63, 0x74, 0x6f,
0x73, 0x5f, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x73, 0x5f, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x14, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x43, 0x74, 0x6f, 0x73, 0x4a,
0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x74, 0x6f, 0x73, 0x4a,
0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x10, 0x63, 0x74, 0x6f, 0x73, 0x5f,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28,
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x16, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x43, 0x74, 0x6f, 0x73, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x74, 0x6f,
0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x3c, 0x0a, 0x0e, 0x73,
0x74, 0x6f, 0x63, 0x5f, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x18, 0x65, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x53, 0x74, 0x6f,
0x63, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x6f,
0x63, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x73, 0x74, 0x6f,
0x63, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x79,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x74, 0x48, 0x00,
0x52, 0x08, 0x73, 0x74, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x74, 0x12, 0x4c, 0x0a, 0x14, 0x73, 0x74,
0x6f, 0x63, 0x5f, 0x68, 0x73, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x74,
0x65, 0x72, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72,
0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63, 0x48, 0x73, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x45, 0x6e,
0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x11, 0x73, 0x74, 0x6f, 0x63, 0x48, 0x73, 0x50, 0x6c, 0x61,
0x79, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x10, 0x73, 0x74, 0x6f, 0x63,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x68, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63,
0x54, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74,
0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x05, 0x0a, 0x03,
0x6d, 0x73, 0x67, 0x22, 0x24, 0x0a, 0x0e, 0x43, 0x74, 0x6f, 0x73, 0x50, 0x6c, 0x61, 0x79, 0x65,
0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x0c, 0x43, 0x74, 0x6f,
0x73, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70,
0x61, 0x73, 0x73, 0x77, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x73,
0x73, 0x77, 0x64, 0x22, 0x4e, 0x0a, 0x0e, 0x43, 0x74, 0x6f, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20,
0x03, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74,
0x72, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x12,
0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x73,
0x69, 0x64, 0x65, 0x22, 0xaf, 0x02, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x63, 0x4a, 0x6f, 0x69, 0x6e,
0x47, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x66, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65,
0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x75, 0x65, 0x6c, 0x5f, 0x72, 0x75, 0x6c,
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x65, 0x6c, 0x52, 0x75, 0x6c,
0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x6f, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x64, 0x65,
0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6e, 0x6f, 0x43, 0x68, 0x65, 0x63,
0x6b, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x6f, 0x5f, 0x73, 0x68, 0x75, 0x66,
0x66, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
0x6e, 0x6f, 0x53, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x19, 0x0a,
0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6c, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52,
0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72,
0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x74,
0x61, 0x72, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x72, 0x61, 0x77, 0x5f,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x72, 0x61,
0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c,
0x69, 0x6d, 0x69, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65,
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x34, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x63, 0x43, 0x68, 0x61,
0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x39, 0x0a, 0x11, 0x53,
0x74, 0x6f, 0x63, 0x48, 0x73, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x65, 0x72,
0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x05, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x22, 0x24, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x63, 0x54, 0x79,
0x70, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x13, 0x5a, 0x11,
0x44, 0x61, 0x72, 0x6b, 0x4e, 0x65, 0x6f, 0x73, 0x2f, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x6b, 0x42, 0x05, 0x0a, 0x03, 0x6d,
0x73, 0x67, 0x22, 0x94, 0x02, 0x0a, 0x0a, 0x59, 0x67, 0x6f, 0x53, 0x74, 0x6f, 0x63, 0x4d, 0x73,
0x67, 0x12, 0x3c, 0x0a, 0x0e, 0x73, 0x74, 0x6f, 0x63, 0x5f, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x67,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x79, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x48,
0x00, 0x52, 0x0c, 0x73, 0x74, 0x6f, 0x63, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12,
0x2f, 0x0a, 0x09, 0x73, 0x74, 0x6f, 0x63, 0x5f, 0x63, 0x68, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63,
0x43, 0x68, 0x61, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x74,
0x12, 0x4c, 0x0a, 0x14, 0x73, 0x74, 0x6f, 0x63, 0x5f, 0x68, 0x73, 0x5f, 0x70, 0x6c, 0x61, 0x79,
0x65, 0x72, 0x5f, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63, 0x48, 0x73, 0x50, 0x6c,
0x61, 0x79, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x11, 0x73, 0x74, 0x6f,
0x63, 0x48, 0x73, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x42,
0x0a, 0x10, 0x73, 0x74, 0x6f, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e,
0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x79, 0x67, 0x6f, 0x70, 0x72,
0x6f, 0x2e, 0x53, 0x74, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x6e,
0x67, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x24, 0x0a, 0x0e, 0x43, 0x74, 0x6f,
0x73, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
0x58, 0x0a, 0x0c, 0x43, 0x74, 0x6f, 0x73, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12,
0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x61, 0x6d,
0x65, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x61, 0x6d, 0x65, 0x69,
0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x22, 0x4e, 0x0a, 0x0e, 0x43, 0x74, 0x6f,
0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6d,
0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x69, 0x6e, 0x12,
0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05,
0x65, 0x78, 0x74, 0x72, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20,
0x03, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x22, 0xaf, 0x02, 0x0a, 0x0c, 0x53, 0x74,
0x6f, 0x63, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x66,
0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, 0x66, 0x6c, 0x69,
0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x75,
0x65, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64,
0x75, 0x65, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x6f, 0x5f, 0x63, 0x68,
0x65, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b,
0x6e, 0x6f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
0x6f, 0x5f, 0x73, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x06,
0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x6e, 0x6f, 0x53, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x44,
0x65, 0x63, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6c, 0x70, 0x18,
0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x70, 0x12, 0x1d,
0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01,
0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x12, 0x1d, 0x0a,
0x0a, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28,
0x05, 0x52, 0x09, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05,
0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x34, 0x0a, 0x08, 0x53,
0x74, 0x6f, 0x63, 0x43, 0x68, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65,
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12,
0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73,
0x67, 0x22, 0x39, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x63, 0x48, 0x73, 0x50, 0x6c, 0x61, 0x79, 0x65,
0x72, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x22, 0x24, 0x0a, 0x0e,
0x53, 0x74, 0x6f, 0x63, 0x54, 0x79, 0x70, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x12,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x42, 0x13, 0x5a, 0x11, 0x44, 0x61, 0x72, 0x6b, 0x4e, 0x65, 0x6f, 0x73, 0x2f, 0x79,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
......@@ -711,25 +764,26 @@ func file_ygopro_proto_rawDescGZIP() []byte {
return file_ygopro_proto_rawDescData
}
var file_ygopro_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_ygopro_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_ygopro_proto_goTypes = []interface{}{
(*YgoCtosMsg)(nil), // 0: ygopro.YgoCtosMsg
(*CtosPlayerInfo)(nil), // 1: ygopro.CtosPlayerInfo
(*CtosJoinGame)(nil), // 2: ygopro.CtosJoinGame
(*CtosUpdateDeck)(nil), // 3: ygopro.CtosUpdateDeck
(*StocJoinGame)(nil), // 4: ygopro.StocJoinGame
(*StocChat)(nil), // 5: ygopro.StocChat
(*StocHsPlayerEnter)(nil), // 6: ygopro.StocHsPlayerEnter
(*StocTypeChange)(nil), // 7: ygopro.StocTypeChange
(*YgoStocMsg)(nil), // 1: ygopro.YgoStocMsg
(*CtosPlayerInfo)(nil), // 2: ygopro.CtosPlayerInfo
(*CtosJoinGame)(nil), // 3: ygopro.CtosJoinGame
(*CtosUpdateDeck)(nil), // 4: ygopro.CtosUpdateDeck
(*StocJoinGame)(nil), // 5: ygopro.StocJoinGame
(*StocChat)(nil), // 6: ygopro.StocChat
(*StocHsPlayerEnter)(nil), // 7: ygopro.StocHsPlayerEnter
(*StocTypeChange)(nil), // 8: ygopro.StocTypeChange
}
var file_ygopro_proto_depIdxs = []int32{
1, // 0: ygopro.YgoCtosMsg.ctos_player_info:type_name -> ygopro.CtosPlayerInfo
2, // 1: ygopro.YgoCtosMsg.ctos_join_game:type_name -> ygopro.CtosJoinGame
3, // 2: ygopro.YgoCtosMsg.ctos_update_deck:type_name -> ygopro.CtosUpdateDeck
4, // 3: ygopro.YgoCtosMsg.stoc_join_game:type_name -> ygopro.StocJoinGame
5, // 4: ygopro.YgoCtosMsg.stoc_chat:type_name -> ygopro.StocChat
6, // 5: ygopro.YgoCtosMsg.stoc_hs_player_enter:type_name -> ygopro.StocHsPlayerEnter
7, // 6: ygopro.YgoCtosMsg.stoc_type_change:type_name -> ygopro.StocTypeChange
2, // 0: ygopro.YgoCtosMsg.ctos_player_info:type_name -> ygopro.CtosPlayerInfo
3, // 1: ygopro.YgoCtosMsg.ctos_join_game:type_name -> ygopro.CtosJoinGame
4, // 2: ygopro.YgoCtosMsg.ctos_update_deck:type_name -> ygopro.CtosUpdateDeck
5, // 3: ygopro.YgoStocMsg.stoc_join_game:type_name -> ygopro.StocJoinGame
6, // 4: ygopro.YgoStocMsg.stoc_chat:type_name -> ygopro.StocChat
7, // 5: ygopro.YgoStocMsg.stoc_hs_player_enter:type_name -> ygopro.StocHsPlayerEnter
8, // 6: ygopro.YgoStocMsg.stoc_type_change:type_name -> ygopro.StocTypeChange
7, // [7:7] is the sub-list for method output_type
7, // [7:7] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
......@@ -756,7 +810,7 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CtosPlayerInfo); i {
switch v := v.(*YgoStocMsg); i {
case 0:
return &v.state
case 1:
......@@ -768,7 +822,7 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CtosJoinGame); i {
switch v := v.(*CtosPlayerInfo); i {
case 0:
return &v.state
case 1:
......@@ -780,7 +834,7 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CtosUpdateDeck); i {
switch v := v.(*CtosJoinGame); i {
case 0:
return &v.state
case 1:
......@@ -792,7 +846,7 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StocJoinGame); i {
switch v := v.(*CtosUpdateDeck); i {
case 0:
return &v.state
case 1:
......@@ -804,7 +858,7 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StocChat); i {
switch v := v.(*StocJoinGame); i {
case 0:
return &v.state
case 1:
......@@ -816,7 +870,7 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StocHsPlayerEnter); i {
switch v := v.(*StocChat); i {
case 0:
return &v.state
case 1:
......@@ -828,6 +882,18 @@ func file_ygopro_proto_init() {
}
}
file_ygopro_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StocHsPlayerEnter); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_ygopro_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StocTypeChange); i {
case 0:
return &v.state
......@@ -844,10 +910,12 @@ func file_ygopro_proto_init() {
(*YgoCtosMsg_CtosPlayerInfo)(nil),
(*YgoCtosMsg_CtosJoinGame)(nil),
(*YgoCtosMsg_CtosUpdateDeck)(nil),
(*YgoCtosMsg_StocJoinGame)(nil),
(*YgoCtosMsg_StocChat)(nil),
(*YgoCtosMsg_StocHsPlayerEnter)(nil),
(*YgoCtosMsg_StocTypeChange)(nil),
}
file_ygopro_proto_msgTypes[1].OneofWrappers = []interface{}{
(*YgoStocMsg_StocJoinGame)(nil),
(*YgoStocMsg_StocChat)(nil),
(*YgoStocMsg_StocHsPlayerEnter)(nil),
(*YgoStocMsg_StocTypeChange)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
......@@ -855,7 +923,7 @@ func file_ygopro_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_ygopro_proto_rawDesc,
NumEnums: 0,
NumMessages: 8,
NumMessages: 9,
NumExtensions: 0,
NumServices: 0,
},
......
......@@ -5,17 +5,21 @@ option go_package = "DarkNeos/ygopropb";
message YgoCtosMsg {
oneof msg {
CtosPlayerInfo ctos_player_info = 2;
CtosJoinGame ctos_join_game = 3;
CtosUpdateDeck ctos_update_deck = 4;
StocJoinGame stoc_join_game = 101;
StocChat stoc_chat = 102;
StocHsPlayerEnter stoc_hs_player_enter = 103;
StocTypeChange stoc_type_change = 104;
CtosPlayerInfo ctos_player_info = 1;
CtosJoinGame ctos_join_game = 2;
CtosUpdateDeck ctos_update_deck = 3;
}
}
message YgoStocMsg {
oneof msg {
StocJoinGame stoc_join_game = 1;
StocChat stoc_chat = 2;
StocHsPlayerEnter stoc_hs_player_enter = 3;
StocTypeChange stoc_type_change = 4;
}
}
// ----- CTOS -----
message CtosPlayerInfo {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment