初始化工程
This commit is contained in:
21
Protobuf/Protobuf/Base.proto
Normal file
21
Protobuf/Protobuf/Base.proto
Normal file
@@ -0,0 +1,21 @@
|
||||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://developers.google.com/open-source/licenses/bsd
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
// Based on original Protocol Buffers design by
|
||||
// Sanjay Ghemawat, Jeff Dean, and others.
|
||||
//
|
||||
// A proto file which is imported by unittest_proto3.proto to test importing.
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package Message;
|
||||
//登录回复
|
||||
message BaseMessage {
|
||||
int32 messageId = 1;
|
||||
bytes messageData = 2;
|
||||
}
|
||||
24
Protobuf/Protobuf/Login.proto
Normal file
24
Protobuf/Protobuf/Login.proto
Normal file
@@ -0,0 +1,24 @@
|
||||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://developers.google.com/open-source/licenses/bsd
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
// Based on original Protocol Buffers design by
|
||||
// Sanjay Ghemawat, Jeff Dean, and others.
|
||||
//
|
||||
// A proto file which is imported by unittest_proto3.proto to test importing.
|
||||
|
||||
syntax = "proto3";
|
||||
package Message;
|
||||
message LoginC2S {
|
||||
int64 uid = 1;
|
||||
bytes platform = 2;
|
||||
}
|
||||
//登录回复
|
||||
message LoginS2C {
|
||||
int32 mainLevel = 1;//主线关卡进度
|
||||
int32 limitLevel = 2;//限时关卡
|
||||
}
|
||||
19
Protobuf/Protobuf/MessageEnum.proto
Normal file
19
Protobuf/Protobuf/MessageEnum.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
// Protocol Buffers - Google's data interchange format
|
||||
// Copyright 2008 Google Inc. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://developers.google.com/open-source/licenses/bsd
|
||||
|
||||
// Author: kenton@google.com (Kenton Varda)
|
||||
// Based on original Protocol Buffers design by
|
||||
// Sanjay Ghemawat, Jeff Dean, and others.
|
||||
//
|
||||
// A proto file which is imported by unittest_proto3.proto to test importing.
|
||||
|
||||
syntax = "proto3";
|
||||
package Message;
|
||||
|
||||
enum EMessageEnum {
|
||||
Login = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user