mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] TEngineServer
[+] TEngineServer
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using ProtoBuf;
|
||||
using Unity.Mathematics;
|
||||
using System.Collections.Generic;
|
||||
using TEngine.Core.Network;
|
||||
#pragma warning disable CS8618
|
||||
|
||||
namespace TEngine
|
||||
{
|
||||
/// <summary>
|
||||
/// Gate跟Map服务器进行通讯、注册Address协议
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class I_G2M_LoginAddressRequest : AProto, IRouteRequest
|
||||
{
|
||||
[ProtoIgnore]
|
||||
public I_M2G_LoginAddressResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return InnerOpcode.I_G2M_LoginAddressRequest; }
|
||||
public long RouteTypeOpCode() { return CoreRouteType.Route; }
|
||||
[ProtoMember(1)]
|
||||
public long AddressId { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public long GateRouteId { get; set; }
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class I_M2G_LoginAddressResponse : AProto, IRouteResponse
|
||||
{
|
||||
public uint OpCode() { return InnerOpcode.I_M2G_LoginAddressResponse; }
|
||||
[ProtoMember(91, IsRequired = true)]
|
||||
public int ErrorCode { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user