using System;
using System.Text;
///
/// 全局配置类
/// 不知道用的对不对呢
///
public class GlobalConfig
{
#if DEBUG
///
/// 网络通讯调试模式
///
public const bool GAME_COMM_DEBUG = true;
#else
public const bool GAME_COMM_DEBUG = false;
#endif
public const int Net_Connect_TimeOut_sec = 25;
///
/// 当前大版本号
///
public static string ClientVersion = "1";
///
/// 字符串使用的编码(默认UTF8)
///
public static Encoding Encoding = Encoding.UTF8;
///
/// 是否外网, true:外网地址, false:内网地址(192.168.10.xx).
///
public readonly static eNetType netType = eNetType.Online_dev;
public static int CharServerPort = netType switch
{
eNetType.Online => 6000,
_ => 2000,
};
public static int MapServerPort = netType switch
{
eNetType.Online => 6001,
_ => 2333,
};
///
/// 是否外网, true:外网地址, false:内网地址(192.168.10.xx).
///
public readonly static bool is_IOS = false;
/**
* 注意:: 送审版本设为true,
* 与online 不冲突。
*
* online为true is_ForReview为true ====>>>>> 正式外网的送审版本哦
* online为false is_ForReview为true =>>>> 内网测试的送审版本哦
*
* online为false is_ForReview为false ====>>>>>内网的正常工作的版本哦
* online为true is_ForReview为false ====>>>>> 外网的的正常工作的版本哦
*/
///
/// 送审版(开启后使用专用url)
///
public readonly static bool is_ForReview = false;
///
/// 是否开启水波纹特效.
///
public readonly static bool is_OpenDynamicBackground = false;
///
/// 当前基带版本号
///
public static int ClientBsaeVersion = 22;
///
/// 是否开启自动更新功能 ----开发的时候如果开启自动更新的话,会检查更新资源更新情况
///
public static bool is_Update = false;
///
/// 是否更新完毕 可以进入游戏
///
public static bool is_InGame = false;
///
/// 是否开启sdk接口功能 ----母包要关闭sdk
///
public readonly static bool is_SDK = true;
///
/// 是否开启新手引导
///
public readonly static bool is_OpenGuide = false;
///
/// 是否保存引导数据
///
public readonly static bool is_SaveGuideData = true;
///
/// 是否打开云~
///
public readonly static bool is_OpenYun = true;
///
/// 聊天申请的 云哇平台提供的本项目的AppID
///
public readonly static int YunVaAppID = 1002491;
///
/// 是否沙箱,true是模拟环境,false是真实环境
///
public readonly static bool is_SandBox = false;
}
///
/// 网络类型
///
public enum eNetType
{
///
/// 内网
///
LAN = 0,
///
/// 外网测试dev分支
///
Online_dev,
///
/// 外网正式
///
Online,
///
/// 外网测试TTTTTT
///
[Obsolete]
TestOnline,
///
/// 外网测试t2(2022.7数值测试)
///
[Obsolete]
T2Online,
}