Add Feature pt2

This commit is contained in:
Silica 2022-03-08 10:59:30 -05:00
parent 092534e331
commit 67275262fb
36 changed files with 1555 additions and 296 deletions

View file

@ -18,6 +18,7 @@ using HISP.Game.SwfModules;
using HISP.Game.Horse;
using HISP.Game.Events;
using HISP.Game.Items;
using System.Diagnostics;
namespace HISP.Server
{
@ -8251,6 +8252,20 @@ namespace HISP.Server
}
return true;
}
public static void OnShutdown()
{
ServerSocket.Dispose();
gameTimer.Dispose();
minuteTimer.Dispose();
}
public static void ShutdownServer()
{
GameClient.OnShutdown();
GameServer.OnShutdown();
Database.OnShutdown();
Entry.OnShutdown();
}
public static void StartServer()
{
ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);