An attempt was made

This commit is contained in:
Kyle Belanger
2023-10-10 14:22:41 -04:00
parent cc4c3b909f
commit 941df3f7fc
3 changed files with 322 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
using AscNet.Common.MsgPack;
using MessagePack;
using MongoDB.Bson.IO;
using System.Text.Json;
using System.Text.Json.Serialization;
using static AscNet.GameServer.Packet;
namespace AscNet.GameServer.Handlers
@@ -28,8 +31,10 @@ namespace AscNet.GameServer.Handlers
Code = 0,
ReconnectToken = "eeeeeeeeeeeeeeh",
UtcOffset = 0,
UtcServerTime = (uint)DateTime.UtcNow.Ticks
UtcServerTime = (uint)DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
});
session.SendResponse(JsonSerializer.Deserialize<NotifyLogin>(File.ReadAllText("Data\\NotifyLogin.json")));
}
}
}

View File

@@ -85,6 +85,7 @@ namespace AscNet.GameServer
c.Error($"Exception packet received: {exception.Code}, {exception.Message}");
break;
default:
c.Error($"Unknown packet received: {packet}");
break;
}
}