|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.28.0
|
|
|
|
|
// protoc-gen-go v1.27.1
|
|
|
|
|
// protoc v3.19.4
|
|
|
|
|
// source: broadcast.proto
|
|
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ const (
|
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
|
type PushUser struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
@ -30,8 +30,8 @@ type User struct {
|
|
|
|
|
Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *User) Reset() {
|
|
|
|
|
*x = User{}
|
|
|
|
|
func (x *PushUser) Reset() {
|
|
|
|
|
*x = PushUser{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_broadcast_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
@ -39,13 +39,13 @@ func (x *User) Reset() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *User) String() string {
|
|
|
|
|
func (x *PushUser) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
|
func (*PushUser) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
|
|
|
|
func (x *PushUser) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_broadcast_proto_msgTypes[0]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
@ -57,26 +57,26 @@ func (x *User) ProtoReflect() protoreflect.Message {
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use User.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
|
|
|
// Deprecated: Use PushUser.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PushUser) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *User) GetUId() int64 {
|
|
|
|
|
func (x *PushUser) GetUId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *User) GetUname() string {
|
|
|
|
|
func (x *PushUser) GetUname() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Uname
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *User) GetAvatar() string {
|
|
|
|
|
func (x *PushUser) GetAvatar() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Avatar
|
|
|
|
|
}
|
|
|
|
@ -88,7 +88,7 @@ type JoinGame struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *JoinGame) Reset() {
|
|
|
|
@ -123,7 +123,7 @@ func (*JoinGame) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *JoinGame) GetUser() *User {
|
|
|
|
|
func (x *JoinGame) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -135,7 +135,7 @@ type CreateUnit struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"` //1-步兵,2-骑兵,3-弓箭手,4-法师
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -171,7 +171,7 @@ func (*CreateUnit) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateUnit) GetUser() *User {
|
|
|
|
|
func (x *CreateUnit) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -190,7 +190,7 @@ type Move struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
Line string `protobuf:"bytes,2,opt,name=line,proto3" json:"line,omitempty"` //1-上,2-中,3-下
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -226,7 +226,7 @@ func (*Move) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Move) GetUser() *User {
|
|
|
|
|
func (x *Move) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -245,7 +245,7 @@ type Outbreak struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Outbreak) Reset() {
|
|
|
|
@ -280,7 +280,7 @@ func (*Outbreak) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Outbreak) GetUser() *User {
|
|
|
|
|
func (x *Outbreak) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -292,7 +292,7 @@ type Gift struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
GiftId int32 `protobuf:"varint,2,opt,name=giftId,proto3" json:"giftId,omitempty"`
|
|
|
|
|
GiftName string `protobuf:"bytes,3,opt,name=giftName,proto3" json:"giftName,omitempty"`
|
|
|
|
|
TotalCoin int64 `protobuf:"varint,4,opt,name=totalCoin,proto3" json:"totalCoin,omitempty"`
|
|
|
|
@ -331,7 +331,7 @@ func (*Gift) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Gift) GetUser() *User {
|
|
|
|
|
func (x *Gift) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -371,7 +371,7 @@ type Wai struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Wai) Reset() {
|
|
|
|
@ -406,7 +406,7 @@ func (*Wai) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{6}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Wai) GetUser() *User {
|
|
|
|
|
func (x *Wai) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -418,7 +418,7 @@ type BuildingMode struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -454,7 +454,7 @@ func (*BuildingMode) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BuildingMode) GetUser() *User {
|
|
|
|
|
func (x *BuildingMode) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -473,7 +473,7 @@ type DanmakuMsg struct {
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
User *PushUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
|
|
|
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -509,7 +509,7 @@ func (*DanmakuMsg) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_broadcast_proto_rawDescGZIP(), []int{8}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DanmakuMsg) GetUser() *User {
|
|
|
|
|
func (x *DanmakuMsg) GetUser() *PushUser {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.User
|
|
|
|
|
}
|
|
|
|
@ -527,45 +527,48 @@ var File_broadcast_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_broadcast_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x0f, 0x62, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
|
0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x46, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a,
|
|
|
|
|
0x03, 0x75, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x49, 0x64, 0x12,
|
|
|
|
|
0x14, 0x0a, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
|
|
0x75, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18,
|
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x22, 0x28, 0x0a,
|
|
|
|
|
0x08, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65,
|
|
|
|
|
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65,
|
|
|
|
|
0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x3e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74,
|
|
|
|
|
0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
|
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
|
|
|
|
|
0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x38, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12,
|
|
|
|
|
0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e,
|
|
|
|
|
0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a,
|
|
|
|
|
0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x4a, 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65,
|
|
|
|
|
0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03,
|
|
|
|
|
0x75, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
|
0x28, 0x09, 0x52, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61,
|
|
|
|
|
0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61,
|
|
|
|
|
0x72, 0x22, 0x2c, 0x0a, 0x08, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
|
|
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22,
|
|
|
|
|
0x42, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x20, 0x0a,
|
|
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12,
|
|
|
|
|
0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75,
|
|
|
|
|
0x6e, 0x69, 0x74, 0x22, 0x3c, 0x0a, 0x04, 0x4d, 0x6f, 0x76, 0x65, 0x12, 0x20, 0x0a, 0x04, 0x75,
|
|
|
|
|
0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x50,
|
|
|
|
|
0x75, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a,
|
|
|
|
|
0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e,
|
|
|
|
|
0x65, 0x22, 0x28, 0x0a, 0x08, 0x4f, 0x75, 0x74, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x12, 0x1c, 0x0a,
|
|
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x92, 0x01, 0x0a, 0x04,
|
|
|
|
|
0x47, 0x69, 0x66, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73,
|
|
|
|
|
0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x69, 0x66, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
|
0x28, 0x05, 0x52, 0x06, 0x67, 0x69, 0x66, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x69,
|
|
|
|
|
0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69,
|
|
|
|
|
0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43,
|
|
|
|
|
0x6f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c,
|
|
|
|
|
0x43, 0x6f, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65,
|
|
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65,
|
|
|
|
|
0x22, 0x23, 0x0a, 0x03, 0x57, 0x61, 0x69, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
|
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
|
|
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x40, 0x0a, 0x0c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x6e,
|
|
|
|
|
0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
|
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
|
|
|
|
|
0x65, 0x22, 0x2c, 0x0a, 0x08, 0x4f, 0x75, 0x74, 0x62, 0x72, 0x65, 0x61, 0x6b, 0x12, 0x20, 0x0a,
|
|
|
|
|
0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22,
|
|
|
|
|
0x96, 0x01, 0x0a, 0x04, 0x47, 0x69, 0x66, 0x74, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72,
|
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68,
|
|
|
|
|
0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x69,
|
|
|
|
|
0x66, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x69, 0x66, 0x74,
|
|
|
|
|
0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x69, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x69, 0x66, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c,
|
|
|
|
|
0x0a, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
|
0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
|
0x73, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
|
|
|
|
|
0x73, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x27, 0x0a, 0x03, 0x57, 0x61, 0x69, 0x12,
|
|
|
|
|
0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
|
|
|
|
|
0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
|
|
|
|
|
0x72, 0x22, 0x44, 0x0a, 0x0c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64,
|
|
|
|
|
0x65, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
|
0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
|
|
|
|
|
0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x44, 0x0a, 0x0a, 0x44, 0x61, 0x6e, 0x6d, 0x61,
|
|
|
|
|
0x6b, 0x75, 0x4d, 0x73, 0x67, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
|
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
|
|
|
|
|
0x73, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x5a,
|
|
|
|
|
0x07, 0x2f, 0x70, 0x62, 0x50, 0x75, 0x73, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x48, 0x0a, 0x0a, 0x44, 0x61, 0x6e, 0x6d, 0x61,
|
|
|
|
|
0x6b, 0x75, 0x4d, 0x73, 0x67, 0x12, 0x20, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20,
|
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x55, 0x73, 0x65,
|
|
|
|
|
0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
|
|
|
|
|
0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
|
|
|
|
|
0x74, 0x42, 0x09, 0x5a, 0x07, 0x2f, 0x70, 0x62, 0x50, 0x75, 0x73, 0x68, 0x62, 0x06, 0x70, 0x72,
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
@ -582,7 +585,7 @@ func file_broadcast_proto_rawDescGZIP() []byte {
|
|
|
|
|
|
|
|
|
|
var file_broadcast_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
|
|
var file_broadcast_proto_goTypes = []interface{}{
|
|
|
|
|
(*User)(nil), // 0: pb.User
|
|
|
|
|
(*PushUser)(nil), // 0: pb.PushUser
|
|
|
|
|
(*JoinGame)(nil), // 1: pb.JoinGame
|
|
|
|
|
(*CreateUnit)(nil), // 2: pb.CreateUnit
|
|
|
|
|
(*Move)(nil), // 3: pb.Move
|
|
|
|
@ -593,14 +596,14 @@ var file_broadcast_proto_goTypes = []interface{}{
|
|
|
|
|
(*DanmakuMsg)(nil), // 8: pb.DanmakuMsg
|
|
|
|
|
}
|
|
|
|
|
var file_broadcast_proto_depIdxs = []int32{
|
|
|
|
|
0, // 0: pb.JoinGame.user:type_name -> pb.User
|
|
|
|
|
0, // 1: pb.CreateUnit.user:type_name -> pb.User
|
|
|
|
|
0, // 2: pb.Move.user:type_name -> pb.User
|
|
|
|
|
0, // 3: pb.Outbreak.user:type_name -> pb.User
|
|
|
|
|
0, // 4: pb.Gift.user:type_name -> pb.User
|
|
|
|
|
0, // 5: pb.Wai.user:type_name -> pb.User
|
|
|
|
|
0, // 6: pb.BuildingMode.user:type_name -> pb.User
|
|
|
|
|
0, // 7: pb.DanmakuMsg.user:type_name -> pb.User
|
|
|
|
|
0, // 0: pb.JoinGame.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 1: pb.CreateUnit.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 2: pb.Move.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 3: pb.Outbreak.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 4: pb.Gift.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 5: pb.Wai.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 6: pb.BuildingMode.user:type_name -> pb.PushUser
|
|
|
|
|
0, // 7: pb.DanmakuMsg.user:type_name -> pb.PushUser
|
|
|
|
|
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
|
|
|
|
@ -615,7 +618,7 @@ func file_broadcast_proto_init() {
|
|
|
|
|
}
|
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_broadcast_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*User); i {
|
|
|
|
|
switch v := v.(*PushUser); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|