protobuf 更新
parent
0335c9b918
commit
41f4b56387
|
|
@ -2,3 +2,5 @@ version: v1
|
||||||
plugins:
|
plugins:
|
||||||
- plugin: buf.build/protocolbuffers/go
|
- plugin: buf.build/protocolbuffers/go
|
||||||
out: go
|
out: go
|
||||||
|
- plugin: buf.build/protocolbuffers/csharp
|
||||||
|
out: csharp
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -215,7 +215,7 @@ type ServerMessage struct {
|
||||||
// Types that are assignable to Actual:
|
// Types that are assignable to Actual:
|
||||||
//
|
//
|
||||||
// *ServerMessage_GameStart
|
// *ServerMessage_GameStart
|
||||||
// *ServerMessage_LevalStart
|
// *ServerMessage_LevelStart
|
||||||
// *ServerMessage_PointFound
|
// *ServerMessage_PointFound
|
||||||
// *ServerMessage_GameFinish
|
// *ServerMessage_GameFinish
|
||||||
Actual isServerMessage_Actual `protobuf_oneof:"actual"`
|
Actual isServerMessage_Actual `protobuf_oneof:"actual"`
|
||||||
|
|
@ -267,9 +267,9 @@ func (x *ServerMessage) GetGameStart() *GameStart {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ServerMessage) GetLevalStart() *LevalStart {
|
func (x *ServerMessage) GetLevelStart() *LevelStart {
|
||||||
if x, ok := x.GetActual().(*ServerMessage_LevalStart); ok {
|
if x, ok := x.GetActual().(*ServerMessage_LevelStart); ok {
|
||||||
return x.LevalStart
|
return x.LevelStart
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -296,8 +296,8 @@ type ServerMessage_GameStart struct {
|
||||||
GameStart *GameStart `protobuf:"bytes,1,opt,name=game_start,json=gameStart,proto3,oneof"`
|
GameStart *GameStart `protobuf:"bytes,1,opt,name=game_start,json=gameStart,proto3,oneof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServerMessage_LevalStart struct {
|
type ServerMessage_LevelStart struct {
|
||||||
LevalStart *LevalStart `protobuf:"bytes,2,opt,name=leval_start,json=levalStart,proto3,oneof"`
|
LevelStart *LevelStart `protobuf:"bytes,2,opt,name=level_start,json=levelStart,proto3,oneof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServerMessage_PointFound struct {
|
type ServerMessage_PointFound struct {
|
||||||
|
|
@ -310,7 +310,7 @@ type ServerMessage_GameFinish struct {
|
||||||
|
|
||||||
func (*ServerMessage_GameStart) isServerMessage_Actual() {}
|
func (*ServerMessage_GameStart) isServerMessage_Actual() {}
|
||||||
|
|
||||||
func (*ServerMessage_LevalStart) isServerMessage_Actual() {}
|
func (*ServerMessage_LevelStart) isServerMessage_Actual() {}
|
||||||
|
|
||||||
func (*ServerMessage_PointFound) isServerMessage_Actual() {}
|
func (*ServerMessage_PointFound) isServerMessage_Actual() {}
|
||||||
|
|
||||||
|
|
@ -488,6 +488,7 @@ type LevelPrepared struct {
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
||||||
|
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LevelPrepared) Reset() {
|
func (x *LevelPrepared) Reset() {
|
||||||
|
|
@ -529,7 +530,14 @@ func (x *LevelPrepared) GetCid() int64 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type LevalStart struct {
|
func (x *LevelPrepared) GetLevel() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Level
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type LevelStart struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
@ -537,8 +545,8 @@ type LevalStart struct {
|
||||||
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
|
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LevalStart) Reset() {
|
func (x *LevelStart) Reset() {
|
||||||
*x = LevalStart{}
|
*x = LevelStart{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_dof_messages_proto_msgTypes[7]
|
mi := &file_dof_messages_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -546,13 +554,13 @@ func (x *LevalStart) Reset() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LevalStart) String() string {
|
func (x *LevelStart) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*LevalStart) ProtoMessage() {}
|
func (*LevelStart) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LevalStart) ProtoReflect() protoreflect.Message {
|
func (x *LevelStart) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_dof_messages_proto_msgTypes[7]
|
mi := &file_dof_messages_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
|
@ -564,12 +572,12 @@ func (x *LevalStart) ProtoReflect() protoreflect.Message {
|
||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use LevalStart.ProtoReflect.Descriptor instead.
|
// Deprecated: Use LevelStart.ProtoReflect.Descriptor instead.
|
||||||
func (*LevalStart) Descriptor() ([]byte, []int) {
|
func (*LevelStart) Descriptor() ([]byte, []int) {
|
||||||
return file_dof_messages_proto_rawDescGZIP(), []int{7}
|
return file_dof_messages_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LevalStart) GetLevel() string {
|
func (x *LevelStart) GetLevel() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Level
|
return x.Level
|
||||||
}
|
}
|
||||||
|
|
@ -583,7 +591,7 @@ type PointFound struct {
|
||||||
|
|
||||||
Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
Cid int64 `protobuf:"varint,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
||||||
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
|
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
|
||||||
PointId int64 `protobuf:"varint,3,opt,name=point_id,json=pointId,proto3" json:"point_id,omitempty"`
|
PointId int32 `protobuf:"varint,3,opt,name=point_id,json=pointId,proto3" json:"point_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PointFound) Reset() {
|
func (x *PointFound) Reset() {
|
||||||
|
|
@ -632,7 +640,7 @@ func (x *PointFound) GetLevel() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PointFound) GetPointId() int64 {
|
func (x *PointFound) GetPointId() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.PointId
|
return x.PointId
|
||||||
}
|
}
|
||||||
|
|
@ -747,7 +755,7 @@ type GameScore struct {
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||||
Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
|
Score int32 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GameScore) Reset() {
|
func (x *GameScore) Reset() {
|
||||||
|
|
@ -789,7 +797,7 @@ func (x *GameScore) GetUid() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GameScore) GetScore() int64 {
|
func (x *GameScore) GetScore() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Score
|
return x.Score
|
||||||
}
|
}
|
||||||
|
|
@ -923,10 +931,10 @@ var file_dof_messages_proto_rawDesc = []byte{
|
||||||
0x67, 0x65, 0x12, 0x2f, 0x0a, 0x0a, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74,
|
0x67, 0x65, 0x12, 0x2f, 0x0a, 0x0a, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x47, 0x61, 0x6d,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x47, 0x61, 0x6d,
|
||||||
0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x00, 0x52, 0x09, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x74,
|
0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x00, 0x52, 0x09, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x74,
|
||||||
0x61, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x0b, 0x6c, 0x65, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61,
|
0x61, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x0b, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x73, 0x74, 0x61,
|
||||||
0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x4c,
|
0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x4c,
|
||||||
0x65, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x6c, 0x65, 0x76,
|
0x65, 0x76, 0x65, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x6c, 0x65, 0x76,
|
||||||
0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74,
|
0x65, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x0b, 0x70, 0x6f, 0x69, 0x6e, 0x74,
|
||||||
0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64,
|
0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64,
|
||||||
0x6f, 0x66, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x00, 0x52,
|
0x6f, 0x66, 0x2e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x00, 0x52,
|
||||||
0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x0b, 0x67,
|
0x0a, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x0b, 0x67,
|
||||||
|
|
@ -947,32 +955,33 @@ var file_dof_messages_proto_rawDesc = []byte{
|
||||||
0x0a, 0x0e, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
0x0a, 0x0e, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
||||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x4c, 0x65, 0x76,
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x4c, 0x65, 0x76,
|
||||||
0x65, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0d, 0x6c, 0x65, 0x76, 0x65,
|
0x65, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0d, 0x6c, 0x65, 0x76, 0x65,
|
||||||
0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x21, 0x0a, 0x0d, 0x4c, 0x65, 0x76,
|
0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x37, 0x0a, 0x0d, 0x4c, 0x65, 0x76,
|
||||||
0x65, 0x6c, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69,
|
0x65, 0x6c, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69,
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x0a,
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x4c, 0x65, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
|
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76,
|
||||||
0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
|
0x65, 0x6c, 0x22, 0x22, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x53, 0x74, 0x61, 0x72, 0x74,
|
||||||
0x22, 0x4f, 0x0a, 0x0a, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x10,
|
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64,
|
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x4f, 0x0a, 0x0a, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x46,
|
||||||
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x6f, 0x75, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f,
|
0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
|
||||||
0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49,
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08,
|
||||||
0x64, 0x22, 0x32, 0x0a, 0x08, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a,
|
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
|
||||||
0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12,
|
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x08, 0x4c, 0x65, 0x76, 0x65, 0x6c,
|
||||||
0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
||||||
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x1f, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x4c, 0x65, 0x76, 0x65,
|
0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02,
|
||||||
0x6c, 0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x1f, 0x0a, 0x0b, 0x41,
|
||||||
0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x09, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63,
|
0x6c, 0x6c, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69,
|
||||||
0x6f, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0x33, 0x0a, 0x09,
|
||||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02,
|
0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
||||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x34, 0x0a, 0x0a, 0x47,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73,
|
||||||
0x61, 0x6d, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x12, 0x26, 0x0a, 0x06, 0x73, 0x63, 0x6f,
|
0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72,
|
||||||
0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x64, 0x6f, 0x66, 0x2e,
|
0x65, 0x22, 0x34, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x12,
|
||||||
0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65,
|
0x26, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x76, 0x65,
|
0x0e, 0x2e, 0x64, 0x6f, 0x66, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52,
|
||||||
0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x63,
|
0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x79, 0x65,
|
||||||
0x69, 0x64, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x72, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
0x74, 0x6f, 0x33,
|
0x01, 0x28, 0x03, 0x52, 0x03, 0x63, 0x69, 0x64, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2f, 0x3b, 0x70,
|
||||||
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
@ -996,7 +1005,7 @@ var file_dof_messages_proto_goTypes = []interface{}{
|
||||||
(*LevelResource)(nil), // 4: dof.LevelResource
|
(*LevelResource)(nil), // 4: dof.LevelResource
|
||||||
(*GameStart)(nil), // 5: dof.GameStart
|
(*GameStart)(nil), // 5: dof.GameStart
|
||||||
(*LevelPrepared)(nil), // 6: dof.LevelPrepared
|
(*LevelPrepared)(nil), // 6: dof.LevelPrepared
|
||||||
(*LevalStart)(nil), // 7: dof.LevalStart
|
(*LevelStart)(nil), // 7: dof.LevelStart
|
||||||
(*PointFound)(nil), // 8: dof.PointFound
|
(*PointFound)(nil), // 8: dof.PointFound
|
||||||
(*LevelEnd)(nil), // 9: dof.LevelEnd
|
(*LevelEnd)(nil), // 9: dof.LevelEnd
|
||||||
(*AllLevelEnd)(nil), // 10: dof.AllLevelEnd
|
(*AllLevelEnd)(nil), // 10: dof.AllLevelEnd
|
||||||
|
|
@ -1012,7 +1021,7 @@ var file_dof_messages_proto_depIdxs = []int32{
|
||||||
10, // 4: dof.ClientMessage.all_level_end:type_name -> dof.AllLevelEnd
|
10, // 4: dof.ClientMessage.all_level_end:type_name -> dof.AllLevelEnd
|
||||||
13, // 5: dof.ClientMessage.player_leave:type_name -> dof.PlayerLeave
|
13, // 5: dof.ClientMessage.player_leave:type_name -> dof.PlayerLeave
|
||||||
5, // 6: dof.ServerMessage.game_start:type_name -> dof.GameStart
|
5, // 6: dof.ServerMessage.game_start:type_name -> dof.GameStart
|
||||||
7, // 7: dof.ServerMessage.leval_start:type_name -> dof.LevalStart
|
7, // 7: dof.ServerMessage.level_start:type_name -> dof.LevelStart
|
||||||
8, // 8: dof.ServerMessage.point_found:type_name -> dof.PointFound
|
8, // 8: dof.ServerMessage.point_found:type_name -> dof.PointFound
|
||||||
12, // 9: dof.ServerMessage.game_finish:type_name -> dof.GameFinish
|
12, // 9: dof.ServerMessage.game_finish:type_name -> dof.GameFinish
|
||||||
4, // 10: dof.GameStart.level_resource:type_name -> dof.LevelResource
|
4, // 10: dof.GameStart.level_resource:type_name -> dof.LevelResource
|
||||||
|
|
@ -1115,7 +1124,7 @@ func file_dof_messages_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_dof_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_dof_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*LevalStart); i {
|
switch v := v.(*LevelStart); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -1209,7 +1218,7 @@ func file_dof_messages_proto_init() {
|
||||||
}
|
}
|
||||||
file_dof_messages_proto_msgTypes[2].OneofWrappers = []interface{}{
|
file_dof_messages_proto_msgTypes[2].OneofWrappers = []interface{}{
|
||||||
(*ServerMessage_GameStart)(nil),
|
(*ServerMessage_GameStart)(nil),
|
||||||
(*ServerMessage_LevalStart)(nil),
|
(*ServerMessage_LevelStart)(nil),
|
||||||
(*ServerMessage_PointFound)(nil),
|
(*ServerMessage_PointFound)(nil),
|
||||||
(*ServerMessage_GameFinish)(nil),
|
(*ServerMessage_GameFinish)(nil),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ message ClientMessage {
|
||||||
message ServerMessage {
|
message ServerMessage {
|
||||||
oneof actual {
|
oneof actual {
|
||||||
GameStart game_start = 1;
|
GameStart game_start = 1;
|
||||||
LevalStart leval_start = 2;
|
LevelStart level_start = 2;
|
||||||
PointFound point_found = 3;
|
PointFound point_found = 3;
|
||||||
GameFinish game_finish = 4;
|
GameFinish game_finish = 4;
|
||||||
}
|
}
|
||||||
|
|
@ -47,16 +47,17 @@ message GameStart {
|
||||||
|
|
||||||
message LevelPrepared {
|
message LevelPrepared {
|
||||||
int64 cid = 1;
|
int64 cid = 1;
|
||||||
|
string level = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LevalStart {
|
message LevelStart {
|
||||||
string level = 1;
|
string level = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PointFound {
|
message PointFound {
|
||||||
int64 cid = 1;
|
int64 cid = 1;
|
||||||
string level = 2;
|
string level = 2;
|
||||||
int64 point_id = 3;
|
int32 point_id = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LevelEnd {
|
message LevelEnd {
|
||||||
|
|
@ -70,7 +71,7 @@ message AllLevelEnd {
|
||||||
|
|
||||||
message GameScore {
|
message GameScore {
|
||||||
string uid = 1;
|
string uid = 1;
|
||||||
int64 score = 2;
|
int32 score = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GameFinish {
|
message GameFinish {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue