using ProtoBuf; using Unity.Mathematics; using System.Collections.Generic; using TEngine.Core.Network; #pragma warning disable CS8618 namespace TEngine { /// /// Gate跟Map服务器进行通讯、注册Address协议 /// [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; } } }