mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 12:39:35 +08:00
75 lines
2.8 KiB
C#
75 lines
2.8 KiB
C#
using System.Text;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Desktop.Library
|
|
{
|
|
public class Constant
|
|
{
|
|
/**
|
|
* Game Configs
|
|
*/
|
|
public static int FunGameType { get; } = (int)FunGameInfo.FunGame.FunGame_Desktop;
|
|
|
|
/**
|
|
* Socket Configs
|
|
*/
|
|
public static string Server_Address { get; set; } = ""; // 服务器IP地址
|
|
public static int Server_Port { get; set; } = 0; // 服务器端口号
|
|
public static Encoding Default_Encoding { get; } = General.DefaultEncoding;
|
|
|
|
/**
|
|
* FunGame Configs
|
|
*/
|
|
public const string GameMode_Mix = "混战模式";
|
|
public const string GameMode_Team = "团队模式";
|
|
public const string GameMode_MixHasPass = "带密码的混战模式";
|
|
public const string GameMode_TeamHasPass = "带密码的团队模式";
|
|
|
|
public const string FunGame_PresetMessage = "- 快捷消息 -";
|
|
public const string FunGame_SignIn = "签到";
|
|
public const string FunGame_ShowCredits = "积分";
|
|
public const string FunGame_ShowStock = "查看库存";
|
|
public const string FunGame_ShowStore = "游戏商店";
|
|
public const string FunGame_CreateMix = "创建游戏 混战";
|
|
public const string FunGame_CreateTeam = "创建游戏 团队";
|
|
public const string FunGame_StartGame = "开始游戏";
|
|
public const string FunGame_Connect = "连接服务器";
|
|
public const string FunGame_ConnectTo = "连接指定服务器";
|
|
public const string FunGame_Disconnect = "登出并断开连接";
|
|
public const string FunGame_DisconnectWhenNotLogin = "断开连接";
|
|
public const string FunGame_Retry = "重新连接";
|
|
public const string FunGame_AutoRetryOn = "开启自动重连";
|
|
public const string FunGame_AutoRetryOff = "关闭自动重连";
|
|
public static readonly object[] PresetOnineItems =
|
|
{
|
|
FunGame_PresetMessage,
|
|
FunGame_SignIn,
|
|
FunGame_ShowCredits,
|
|
FunGame_ShowStock,
|
|
FunGame_ShowStore,
|
|
FunGame_CreateMix,
|
|
FunGame_CreateTeam,
|
|
FunGame_StartGame,
|
|
FunGame_Disconnect,
|
|
FunGame_AutoRetryOn,
|
|
FunGame_AutoRetryOff
|
|
};
|
|
public static readonly object[] PresetNoLoginItems =
|
|
{
|
|
FunGame_PresetMessage,
|
|
FunGame_DisconnectWhenNotLogin,
|
|
FunGame_AutoRetryOn,
|
|
FunGame_AutoRetryOff
|
|
};
|
|
public static readonly object[] PresetNoConnectItems =
|
|
{
|
|
FunGame_PresetMessage,
|
|
FunGame_Connect,
|
|
FunGame_ConnectTo,
|
|
FunGame_Retry,
|
|
FunGame_AutoRetryOn,
|
|
FunGame_AutoRetryOff
|
|
};
|
|
}
|
|
}
|