GMPanel
This commit is contained in:
ALEXTANG
2023-07-17 20:59:04 +08:00
parent 068ec709d0
commit d61a8dfa4b
17 changed files with 3630 additions and 1 deletions

View File

@@ -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; }
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}