
using CrazyStudio.Core.Common.Eitities;

namespace CrazyStudio.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; }


        public const string OssPasswordKey = "Oss_key_75678#";
        ///// <summary>
        ///// 火山引擎信息类
        ///// </summary>
        //public static VolInfos VolInfos = new VolInfos();

        ///// <summary>
        ///// 阿里云信息类
        ///// </summary>
        //public static AliyunInfos AliyunInfos = new AliyunInfos();
        //set => roomExpirySecond = value; }
    }
}
