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
33 lines
1020 B
C#
33 lines
1020 B
C#
using ObjectModel;
|
|
using ObjectModel.Config;
|
|
using Server.DB.Redis;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using GameData;
|
|
|
|
namespace GameDAL.Backend
|
|
{
|
|
public class DeskPlayerDal
|
|
{
|
|
/// <summary>
|
|
/// 获取禁止同桌信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static string GetNoDeskPlayer() {
|
|
return redisManager.GetBiSaidb(ConstClass.NoDeskMatesAllowedDBIdx).StringGet(ConstClass.NoDeskMatesAllowedKey);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 设置禁止同桌信息
|
|
/// </summary>
|
|
/// <param name="playerInfos"></param>
|
|
public static void SetNoDeskPlayer(List<NoDeskPlayerInfo> playerInfos) {
|
|
if (playerInfos == null) return;
|
|
redisManager.GetBiSaidb(ConstClass.NoDeskMatesAllowedDBIdx).StringSet(ConstClass.NoDeskMatesAllowedKey, JsonPack.GetJson(playerInfos));
|
|
}
|
|
}
|
|
}
|