Files
TEngine/Assets/GameScripts/DotNet/Logic/Generate~/NetworkProtocol/InnerMessage.cs
ALEXTANG 0c8f3a5f92 [+] TEngineServer
[+] TEngineServer
2023-07-13 17:17:26 +08:00

32 lines
923 B
C#

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