mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 03:59:35 +08:00

* 添加DataTable Converter * 修改DataSet Converter,支持多个Tables反序列化,此转换器也支持兼容DataTable * 修改构造方法、工厂方法,添加常用类自定义转换器
26 lines
904 B
C#
26 lines
904 B
C#
using System.Text;
|
|
using Milimoe.FunGame.Core.Entity;
|
|
|
|
namespace Milimoe.FunGame.Core.Library.Constant
|
|
{
|
|
public class General
|
|
{
|
|
// Static Variable
|
|
public static Empty EntityInstance { get; } = new();
|
|
public static User UnknownUserInstance { get; } = new();
|
|
public static Room HallInstance { get; } = Api.Utility.Factory.GetHall();
|
|
public static Encoding DefaultEncoding => Encoding.Unicode;
|
|
public static string GeneralDateTimeFormat => "yyyy-MM-dd HH:mm:ss.fff";
|
|
public static DateTime DefaultTime { get; } = new(1970,1,1,8,0,0);
|
|
|
|
// Const
|
|
public const int MaxRetryTimes = 20;
|
|
public const int MaxTask_1C2G = 10;
|
|
public const int MaxTask_2C2G = 20;
|
|
public const int MaxTask_4C4G = 40;
|
|
|
|
public const int SocketByteSize = 512 * 1024;
|
|
public const int StreamByteSize = 2048;
|
|
}
|
|
}
|