using LiteNetLib; using Serilog; using ServerLib.Service; namespace MMOserver.Game; public class GameServer : ServerBase { public GameServer(int port, string connectionString) : base(port, connectionString) { } protected override void OnSessionConnected(NetPeer peer, long hashKey) { Log.Information("[GameServer] 세션 연결 HashKey={Key} PeerId={Id}", hashKey, peer.Id); } protected override void OnSessionDisconnected(NetPeer peer, long hashKey, DisconnectInfo info) { Log.Information("[GameServer] 세션 해제 HashKey={Key} Reason={Reason}", hashKey, info.Reason); } protected override void HandlePacket(NetPeer peer, long hashKey, ushort type, byte[] payload) { Log.Debug("[GameServer] 패킷 수신 HashKey={Key} Type={Type} Size={Size}", hashKey, type, payload.Length); } }