2025-11-16 19:16:44 +08:00

51 lines
1.5 KiB
C#
Raw Permalink 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 CrasyStudio.Core.Common
{
public class Global
{
public static string RoomListKey = "RoomList";
public const byte Room3V3MaxUserCount = 6;
public const byte Room4V4MaxUserCount = 8;
public const byte Room5V5MaxUserCount = 10;
/// <summary>
/// 搜索房间列表,每页多少条
/// </summary>
public const int PageSize = 35;
/// <summary>
/// 每局战斗倒计时快到时候剩下的时间默认10秒单位
/// </summary>
public static int FlightCollDownTipTime = 10;
/// <summary>
/// 每局战斗时间默认3分钟单位
/// </summary>
public static int FlightTime = 60 * 3;
public static string RedisLockKey = "LockKey";
public static string RedisTimerKey = "TimerKey";
public static string RedisTimerToken = "TimerToken";
public static string ServerToken = "ServerToken";
public static readonly string RoomNamePrefix = "R_";
public static readonly string RoomNameEnd = "_E";
public static readonly string GamePrefix = "Tank:";
public static string GetIdLockKey(string id)
{
string key = RedisLockKey + "_" + id;
return key;
}
public static string MyServerClusterTag = string.Empty;
public static int RoomExpirySecond { get => FlightTime + 10; }
//set => roomExpirySecond = value; }
}
}