mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-14 00:04:40 +01:00
GuideCompleteRequest impl and saving progression
This commit is contained in:
@@ -204,6 +204,12 @@ namespace AscNet.GameServer
|
||||
if (Server.Instance.Sessions.GetValueOrDefault(id) is null)
|
||||
return;
|
||||
|
||||
// DB save on disconnect
|
||||
log.Info($"saving session state...");
|
||||
player?.Save();
|
||||
character?.Save();
|
||||
stage?.Save();
|
||||
|
||||
log.Warn($"{id} disconnected");
|
||||
client.Close();
|
||||
Server.Instance.Sessions.Remove(id);
|
||||
|
||||
Reference in New Issue
Block a user