修订部分命名和参数
This commit is contained in:
parent
34d291410c
commit
b6a6e5f0cd
@ -13,6 +13,7 @@ using PSO2SERVER.Object;
|
||||
using PSO2SERVER.Packets;
|
||||
using PSO2SERVER.Packets.PSOPackets;
|
||||
using PSO2SERVER.Zone;
|
||||
using Org.BouncyCastle.Tls;
|
||||
|
||||
namespace PSO2SERVER
|
||||
{
|
||||
@ -110,7 +111,7 @@ namespace PSO2SERVER
|
||||
|
||||
public ConsoleSystem()
|
||||
{
|
||||
Console.Title = "梦幻之星OL2";
|
||||
Console.Title = ServerApp.ServerName;
|
||||
Console.CursorVisible = true;
|
||||
SetSize(80, 24);
|
||||
|
||||
@ -207,7 +208,7 @@ namespace PSO2SERVER
|
||||
{
|
||||
lock (_consoleLock)
|
||||
{
|
||||
Console.Title = "梦幻之星OL2 - " + AssembleInfoBar();
|
||||
Console.Title = ServerApp.ServerName + " - " + AssembleInfoBar();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ namespace PSO2SERVER.Database
|
||||
var f in
|
||||
Directory.EnumerateFiles(Directory.GetCurrentDirectory() + "/Resources/sql/scripts/", "*.sql"))
|
||||
{
|
||||
Logger.WriteInternal("[DB ] 执行数据库脚本 {0}", f);
|
||||
Logger.WriteInternal("[DBC] 执行数据库脚本 {0}", f);
|
||||
Database.ExecuteSqlCommand(File.ReadAllText(f));
|
||||
}
|
||||
var revision = ServerInfos.Find("Revision");
|
||||
@ -129,7 +129,7 @@ namespace PSO2SERVER.Database
|
||||
}
|
||||
SaveChanges();
|
||||
|
||||
Logger.WriteInternal("[DB ] 加载数据集修订的数据库 {0}", revision.Setting);
|
||||
Logger.WriteInternal("[DBC] 加载数据集修订的数据库 {0}", revision.Setting);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ namespace PSO2SERVER.Party
|
||||
|
||||
private PartyManager()
|
||||
{
|
||||
Logger.WriteInternal("[PTY] PartyManager initialized.");
|
||||
Logger.WriteInternal("[PTY] PartyManager 初始化完成.");
|
||||
}
|
||||
|
||||
public Party GetCurrentPartyForClient(Client c)
|
||||
|
@ -117,15 +117,13 @@ namespace PSO2SERVER
|
||||
|
||||
public void Start()
|
||||
{
|
||||
Logger.WriteInternal("服务器启动完成 " + DateTime.Now);
|
||||
|
||||
Server = new Server();
|
||||
|
||||
Config.Load();
|
||||
|
||||
PacketHandlers.LoadPacketHandlers();
|
||||
|
||||
Logger.WriteInternal("[DB ] 载入数据库...");
|
||||
Logger.WriteInternal("[DBC] 载入数据库...");
|
||||
using (var db = new ServerEf())
|
||||
{
|
||||
db.TestDatabaseConnection();
|
||||
@ -136,6 +134,7 @@ namespace PSO2SERVER
|
||||
for (var i = 0; i < 10; i++)
|
||||
QueryServers.Add(new QueryServer(QueryMode.ShipList, 12099 + (100 * i)));
|
||||
|
||||
Logger.WriteInternal("服务器启动完成 " + DateTime.Now);
|
||||
Server.Run();
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ namespace PSO2SERVER
|
||||
var queryThread = new Thread(Run);
|
||||
queryThread.Start();
|
||||
RunningServers.Add(queryThread);
|
||||
Logger.WriteInternal("[---] 开始监听端口 " + port);
|
||||
Logger.WriteInternal("[QSP] 开始监听端口 " + port);
|
||||
}
|
||||
|
||||
private void Run()
|
||||
|
Loading…
Reference in New Issue
Block a user