c1_unity/Assets/Scripts/Common/Network/INetIncomingMessage.cs
2023-04-03 11:04:31 +08:00

24 lines
644 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace BF
{
public interface INetIncomingMessage
{
NetIncomingMessageType MessageType { get; }
byte Version { get; }
bool IsCompress { get; }
uint Seq { get; }
uint Group { get; }
uint CMD { get; }
byte[] Data { get; }
int ErrorCode { get; }
string ErrorMsg { get; }
NetConnectStatus ConnectStatus { get; }
/// <summary>
/// 心跳包同步的服务器的时间戳单位是ms代表服务器当前时间只在MessageType=HeartBeatMessage时有效。
/// </summary>
long HeartbeatSyncTimestamp { get; }
}
}