修订部分命名和参数

This commit is contained in:
Longfeng Qin 2024-09-10 01:36:26 +08:00
parent 34d291410c
commit b6a6e5f0cd
5 changed files with 9 additions and 9 deletions

View File

@ -13,6 +13,7 @@ using PSO2SERVER.Object;
using PSO2SERVER.Packets; using PSO2SERVER.Packets;
using PSO2SERVER.Packets.PSOPackets; using PSO2SERVER.Packets.PSOPackets;
using PSO2SERVER.Zone; using PSO2SERVER.Zone;
using Org.BouncyCastle.Tls;
namespace PSO2SERVER namespace PSO2SERVER
{ {
@ -110,7 +111,7 @@ namespace PSO2SERVER
public ConsoleSystem() public ConsoleSystem()
{ {
Console.Title = "梦幻之星OL2"; Console.Title = ServerApp.ServerName;
Console.CursorVisible = true; Console.CursorVisible = true;
SetSize(80, 24); SetSize(80, 24);
@ -207,7 +208,7 @@ namespace PSO2SERVER
{ {
lock (_consoleLock) lock (_consoleLock)
{ {
Console.Title = "梦幻之星OL2 - " + AssembleInfoBar(); Console.Title = ServerApp.ServerName + " - " + AssembleInfoBar();
} }
} }

View File

@ -115,7 +115,7 @@ namespace PSO2SERVER.Database
var f in var f in
Directory.EnumerateFiles(Directory.GetCurrentDirectory() + "/Resources/sql/scripts/", "*.sql")) Directory.EnumerateFiles(Directory.GetCurrentDirectory() + "/Resources/sql/scripts/", "*.sql"))
{ {
Logger.WriteInternal("[DB ] 执行数据库脚本 {0}", f); Logger.WriteInternal("[DBC] 执行数据库脚本 {0}", f);
Database.ExecuteSqlCommand(File.ReadAllText(f)); Database.ExecuteSqlCommand(File.ReadAllText(f));
} }
var revision = ServerInfos.Find("Revision"); var revision = ServerInfos.Find("Revision");
@ -129,7 +129,7 @@ namespace PSO2SERVER.Database
} }
SaveChanges(); SaveChanges();
Logger.WriteInternal("[DB ] 加载数据集修订的数据库 {0}", revision.Setting); Logger.WriteInternal("[DBC] 加载数据集修订的数据库 {0}", revision.Setting);
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -21,7 +21,7 @@ namespace PSO2SERVER.Party
private PartyManager() private PartyManager()
{ {
Logger.WriteInternal("[PTY] PartyManager initialized."); Logger.WriteInternal("[PTY] PartyManager 初始化完成.");
} }
public Party GetCurrentPartyForClient(Client c) public Party GetCurrentPartyForClient(Client c)

View File

@ -117,15 +117,13 @@ namespace PSO2SERVER
public void Start() public void Start()
{ {
Logger.WriteInternal("服务器启动完成 " + DateTime.Now);
Server = new Server(); Server = new Server();
Config.Load(); Config.Load();
PacketHandlers.LoadPacketHandlers(); PacketHandlers.LoadPacketHandlers();
Logger.WriteInternal("[DB ] 载入数据库..."); Logger.WriteInternal("[DBC] 载入数据库...");
using (var db = new ServerEf()) using (var db = new ServerEf())
{ {
db.TestDatabaseConnection(); db.TestDatabaseConnection();
@ -136,6 +134,7 @@ namespace PSO2SERVER
for (var i = 0; i < 10; i++) for (var i = 0; i < 10; i++)
QueryServers.Add(new QueryServer(QueryMode.ShipList, 12099 + (100 * i))); QueryServers.Add(new QueryServer(QueryMode.ShipList, 12099 + (100 * i)));
Logger.WriteInternal("服务器启动完成 " + DateTime.Now);
Server.Run(); Server.Run();
} }

View File

@ -34,7 +34,7 @@ namespace PSO2SERVER
var queryThread = new Thread(Run); var queryThread = new Thread(Run);
queryThread.Start(); queryThread.Start();
RunningServers.Add(queryThread); RunningServers.Add(queryThread);
Logger.WriteInternal("[---] 开始监听端口 " + port); Logger.WriteInternal("[QSP] 开始监听端口 " + port);
} }
private void Run() private void Run()