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

* 常量更新 * 添加枚举:Login_UpdatePassword * 添加Hashtable反序列化方法 Server那边没有Request对象 --------- Co-authored-by: Yezi <53083103+yeziuku@users.noreply.github.com>
29 lines
901 B
C#
29 lines
901 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 => new();
|
|
public static User UnknownUserInstance => new();
|
|
public static Room HallInstance => new();
|
|
public static Encoding DefaultEncoding => Encoding.Unicode;
|
|
public static string GeneralDateTimeFormat => "yyyy-MM-dd HH:mm:ss.fff";
|
|
public static DateTime DefaultTime => 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;
|
|
}
|
|
}
|