feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
This commit is contained in:
46
GameNetModule/GameNet/Base/IUserSession.cs
Normal file
46
GameNetModule/GameNet/Base/IUserSession.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using GameMessage;
|
||||
|
||||
namespace Server.Net
|
||||
{
|
||||
public interface IUserSession
|
||||
{
|
||||
long Id { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例ID
|
||||
/// </summary>
|
||||
long InstanceId { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否断开连接
|
||||
/// </summary>
|
||||
bool IsDisConnected { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录验证码
|
||||
/// </summary>
|
||||
string VerificationCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户数据
|
||||
/// </summary>
|
||||
SessionUserData UserData { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 远端ip地址
|
||||
/// </summary>
|
||||
string RemoteIPAddress
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
void Send(byte[] buffer, Type messageType);
|
||||
|
||||
void Send(MessageData messageData);
|
||||
|
||||
void BindUser(int userid, string uuid, int clientVer, int plat,string deviceInfo,bool isNewUser,string storeType, bool reset = false);
|
||||
|
||||
void DisConnected();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user