mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
GMPanel
GMPanel
This commit is contained in:
@@ -78,4 +78,13 @@ message H_C2G_RegisterRequest // IRequest,H_G2C_RegisterResponse
|
||||
message H_G2C_RegisterResponse // IResponse
|
||||
{
|
||||
uint UID = 1;
|
||||
}
|
||||
/// 客户端发送GM
|
||||
message CmdGmReq // IRequest,IResponse
|
||||
{
|
||||
string input = 1;
|
||||
}
|
||||
message CmdGmRes // IResponse
|
||||
{
|
||||
string msg = 1;
|
||||
}
|
@@ -181,4 +181,25 @@ namespace TEngine
|
||||
[ProtoMember(1)]
|
||||
public uint UID { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 客户端发送GM
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class CmdGmReq : AProto, IRequest
|
||||
{
|
||||
[ProtoIgnore]
|
||||
public IResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return OuterOpcode.CmdGmReq; }
|
||||
[ProtoMember(1)]
|
||||
public string input { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class CmdGmRes : AProto, IResponse
|
||||
{
|
||||
public uint OpCode() { return OuterOpcode.CmdGmRes; }
|
||||
[ProtoMember(91, IsRequired = true)]
|
||||
public uint ErrorCode { get; set; }
|
||||
[ProtoMember(1)]
|
||||
public string msg { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -18,5 +18,7 @@ namespace TEngine
|
||||
public const int H_G2C_LoginResponse = 160000003;
|
||||
public const int H_C2G_RegisterRequest = 110000004;
|
||||
public const int H_G2C_RegisterResponse = 160000004;
|
||||
public const int CmdGmReq = 110000005;
|
||||
public const int CmdGmRes = 160000005;
|
||||
}
|
||||
}
|
||||
|
@@ -34,7 +34,7 @@ namespace TEngine.Logic
|
||||
AccountComponent accountComponent = session.Scene.GetComponent<AccountComponent>();
|
||||
if (accountComponent.Get(account.UID) != null)
|
||||
{
|
||||
response.ErrorCode = ErrorCode.ERR_LoginError;
|
||||
response.ErrorCode = ErrorCode.ERR_AccountIsInGame;
|
||||
reply();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user