Browse Source

1.增加获取玩法列表协议;2.登录协议字段调整

johnclot69 1 tháng trước cách đây
mục cha
commit
80248e173d

+ 2 - 1
Config/Proto/InnerMessage_S_20001.proto

@@ -131,6 +131,7 @@ message R2G_GetLoginKey // IActorRequest
 {
 	int32 RpcId = 1;
 	string Account = 2;
+	int32 Channel = 3;
 }
 
 message G2R_GetLoginKey // IActorResponse
@@ -138,7 +139,7 @@ message G2R_GetLoginKey // IActorResponse
 	int32 RpcId = 1;
 	int32 Error = 2;
 	string Message = 3;
-	int64 Key = 4;
+	string Key = 4;
 	int64 GameId = 5;
 }
 

+ 7 - 6
Config/Proto/OuterMessage_C_30001.proto

@@ -124,9 +124,9 @@ message M2C_Reload // IResponse
 message C2R_Login // IRequest
 {
 	int32 RpcId = 1;
-	string  Account = 2;	// 帐号
-	string  Password = 3;	// 密码
-	int32	Channel = 4;	// 渠道号
+	string Account = 2;		// 帐号
+	string Password = 3;	// 密码
+	int32 Channel = 4;		// 渠道号(10000:测试渠道全渠道 10001:黄冈 10002:鄂州)
 }
 
 message R2C_Login // IResponse
@@ -135,7 +135,7 @@ message R2C_Login // IResponse
 	int32 Error = 2;
 	string Message = 3;
 	string Address = 4;
-	int64 Key = 5;
+	string Key = 5;
 	int64 GameId = 6;
 }
 
@@ -143,7 +143,7 @@ message R2C_Login // IResponse
 message C2G_LoginGame // IRequest
 {
 	int32 RpcId = 1;
-	int64 Key = 2;  // 帐号
+	string Key = 2;			// 游戏服登录key
 	int64 GameId = 3;
 }
 
@@ -167,6 +167,7 @@ message G2C_GetGameplayList // IResponse
 	int32 RpcId = 1;
 	int32 Error = 2;
 	string Message = 3;
+	repeated int32 GameplayList = 4;	// 房间玩法类型 1:黄冈晃晃 2:鄂州麻将
 }
 
 // 创建房间
@@ -174,7 +175,7 @@ message G2C_GetGameplayList // IResponse
 message C2G_CreatRoom // IRequest
 {
 	int32 RpcId = 1;
-	int32 Type = 2;		// 房间玩法类型 1:黄冈晃晃
+	int32 Type = 2;		// 房间玩法类型 1:黄冈晃晃 2:鄂州麻将
 }
 
 message G2C_CreatRoom // IResponse

+ 4 - 1
DotNet/Model/Generate/Message/InnerMessage_S_20001.cs

@@ -276,6 +276,9 @@ namespace ET
 		[ProtoMember(2)]
 		public string Account { get; set; }
 
+		[ProtoMember(3)]
+		public int Channel { get; set; }
+
 	}
 
 	[Message(InnerMessage.G2R_GetLoginKey)]
@@ -292,7 +295,7 @@ namespace ET
 		public string Message { get; set; }
 
 		[ProtoMember(4)]
-		public long Key { get; set; }
+		public string Key { get; set; }
 
 		[ProtoMember(5)]
 		public long GameId { get; set; }

+ 5 - 2
DotNet/Model/Generate/Message/OuterMessage_C_30001.cs

@@ -273,7 +273,7 @@ namespace ET
 		public string Address { get; set; }
 
 		[ProtoMember(5)]
-		public long Key { get; set; }
+		public string Key { get; set; }
 
 		[ProtoMember(6)]
 		public long GameId { get; set; }
@@ -289,7 +289,7 @@ namespace ET
 		public int RpcId { get; set; }
 
 		[ProtoMember(2)]
-		public long Key { get; set; }
+		public string Key { get; set; }
 
 		[ProtoMember(3)]
 		public long GameId { get; set; }
@@ -340,6 +340,9 @@ namespace ET
 		[ProtoMember(3)]
 		public string Message { get; set; }
 
+		[ProtoMember(4)]
+		public List<int> GameplayList { get; set; }
+
 	}
 
 // 创建房间

+ 5 - 2
Unity/Assets/Scripts/Codes/Model/Client/Generate/Message/OuterMessage_C_30001.cs

@@ -273,7 +273,7 @@ namespace ET
 		public string Address { get; set; }
 
 		[ProtoMember(5)]
-		public long Key { get; set; }
+		public string Key { get; set; }
 
 		[ProtoMember(6)]
 		public long GameId { get; set; }
@@ -289,7 +289,7 @@ namespace ET
 		public int RpcId { get; set; }
 
 		[ProtoMember(2)]
-		public long Key { get; set; }
+		public string Key { get; set; }
 
 		[ProtoMember(3)]
 		public long GameId { get; set; }
@@ -340,6 +340,9 @@ namespace ET
 		[ProtoMember(3)]
 		public string Message { get; set; }
 
+		[ProtoMember(4)]
+		public List<int> GameplayList { get; set; }
+
 	}
 
 // 创建房间