/*
* 由SharpDevelop创建。
* 用户: Administrator
* 日期: 2019-01-02
* 时间: 13:07
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using System;
using Server.Data.Module;
using GameData;
namespace Server.DB.Redis
{
///
/// redis字典
///
public static class RedisDictionary
{
///
/// 配置所在的redis数据库
///
public const int configDb = 1;
///
/// 缓存数据库
///
public const int cachedb = 1;
///
/// 版本数据库
///
public const int clientverdb = 2;
///
/// 聊天缓存的消息数据
///
public const int chatmessagedb = 3;
///
/// 玩家状态存储库
///
public const int PlayerState = 4;
///
/// 统计库-6381
///
public const int Statistics = 6;
///
/// 游戏服务器细节信息
///
public const string GameSerinfoDetail = "GameSerinfoDetail";
///
/// 所有的服务器配置
///
public const string AllServerConfig = "AllServerConfig";
public const string AllServerConfigVer = "AllServerConfig:ver";
///
/// 存储配置服务器用的Key todo 这个key废弃了 1 号库
///
public const string GameConfigServerLuBanKey = "GameConfigServerLuBan";
///
/// 玩家活动数据
///
public const string ActivityPlayerData = "Game:ActivityPlayerData:{0}";
#region 模块数据表
///
/// 权重
///
public const string weightsField = "Weights";
///
/// 是否死亡
///
public const string dieField = "isDie";
///
/// 模块数据表
///
public const string tbModuleData = "tbModuleData";
///
/// 节点名称
///
public const string moduleNames = "nodenames";
#endregion
#region ModuleOnlineTab
///
/// 在线模块编号表
///
public const string tbModuleNum = "tbModuleNum";
///
///
///
///
///
public static string dbModuleNumKey(ModuleUtile util){
return tbModuleData + "." + util.id;
}
///
///
///
///
///
public static string dbModuleNumKey(int ModuleUtileId){
return tbModuleData + "." + ModuleUtileId;
}
#endregion
///
/// 模块名称表
///
public const string tbModuleName = "Game:tbModuleName";
///
/// 游戏信息表名 存储gameid gamesty
///
public const string GameInfoTabName = "Game:NodeInfo:GamesInfo";
#region friendRoom
///
/// 上次创建房间的时间 数据类型hash key1 lastCreateRoomTime 上次的创建时间 key2 lastRoomNum 上次的房间号
///
public const string lastRoomNum = "Game:FriendRoom:lastRoomNum";
///
/// 上次创建房间的时间
///
public const string lastCreatRoomTime = "Game:FriendRoom:lastDateTime";
///
/// 上次创建房间的房间号
///
public const string lastCreateRoomNum = "Game:FriendRoom:lastRoomNum";
///
/// 房间号标记 数据类型 string key=roomTag+"roomNum"; 存储的房间唯一码
///
public const string roomTag = "Game:FriendRoom:Room.";
///
/// 玩家的房间号以及唯一码信息
///
public const string PlayerRoomNum = "Game:FriendRoom:Player:";
///
/// 房间其他字段
/// key1 friendRoomField+"唯一吗" hash 房间详细数据
/// key3 friendRoomField+"唯一吗."+"每局详情_idx" hash 存储每局分数
///
public const string friendRoomField = "Game:FriendRoom:weiyima:";
///
/// 朋友房战斗数据_用来恢复用的
///
public const string friendRoomfightdata = "Game:FriendRoom:data:";
///
/// 朋友房战斗记_用来回放用的
///
public const string friendRoomfightRecord = "Game:FriendRoom:Record:";
#endregion
}
}